|
@@ -129,51 +129,9 @@
|
|
|
</div>
|
|
|
</body>
|
|
|
|
|
|
-<!--视频插件调用方法-->
|
|
|
-<script>
|
|
|
-$(function () {
|
|
|
- //视频
|
|
|
- jsModern.video("#video");
|
|
|
- //播放视频
|
|
|
- $(".VideoBtn").click(function () {
|
|
|
- var video = document.getElementById("videoShow");
|
|
|
- video.play();
|
|
|
- $('.VideoBtn').hide();
|
|
|
- })
|
|
|
-})
|
|
|
-</script>
|
|
|
|
|
|
-<script type="text/javascript">
|
|
|
-var tool =
|
|
|
- [
|
|
|
- "fullscreen", "undo", "redo", "|",
|
|
|
- "bold", "italic", "underline", "fontborder", "strikethrough", "superscript", "subscript", "removeformat", "formatmatch", "autotypeset", "blockquote", "pasteplain", "|", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist", "selectall", "cleardoc", "|",
|
|
|
- "rowspacingtop", "rowspacingbottom", "lineheight", "|",
|
|
|
- "customstyle", "paragraph", "fontfamily", "fontsize", "|",
|
|
|
- "directionalityltr", "directionalityrtl", "indent", "|",
|
|
|
- "justifyleft", "justifycenter", "justifyright", "justifyjustify", "|", "touppercase", "tolowercase", "|",
|
|
|
- "imagenone", "imageleft", "imageright", "imagecenter", "|",
|
|
|
- "emotion","pagebreak", "template", "|",
|
|
|
- "horizontal", "date", "time", "spechars", "|",
|
|
|
- "inserttable", "deletetable", "insertparagraphbeforetable", "insertrow", "deleterow", "insertcol", "deletecol", "mergecells", "mergeright", "mergedown", "splittocells", "splittorows", "splittocols", "charts", "|",
|
|
|
- "preview", "searchreplace","drafts"
|
|
|
- ];
|
|
|
-
|
|
|
-var editor = new baidu.editor.ui.Editor({
|
|
|
- //toolbars: [tool],
|
|
|
- elementPathEnabled : false
|
|
|
- ,wordCount:false //是否开启字数统计
|
|
|
- ,maximumWords:2000 //允许的最大字符数
|
|
|
- ,wordCountMsg:'当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符'
|
|
|
- //超出字数限制提示 留空支持多语言自动切换,否则按此配置显示
|
|
|
- ,wordOverFlowMsg:'<span style="color:red;">你输入的字符个数已经超出最大允许值!</span>'
|
|
|
-});
|
|
|
-
|
|
|
-$(function(){
|
|
|
- editor.render('editor');
|
|
|
- editor.ready( function () { editor.setContent( $('#description').val() ); });
|
|
|
-});
|
|
|
-</script>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
@@ -181,16 +139,14 @@ $(function () {
|
|
|
})
|
|
|
|
|
|
function saveFrom(){
|
|
|
- var contents = UE.getEditor('editor').getContent();
|
|
|
- $('#description').val(contents);
|
|
|
- var url="[[${sysUrl}]]/sys/train/video/save";
|
|
|
+ var url="[[${sysUrl}]]/sys/train/file/save";
|
|
|
var params = $("#submitFrom").serialize();
|
|
|
$.post(url,params,function(data){
|
|
|
if(data != null){
|
|
|
if(data.meta.success){
|
|
|
layer.msg("操作成功!",{icon:1});
|
|
|
setTimeout(function(){
|
|
|
- window.location.href ='[[${sysUrl}]]/sys/train/video/list.html';
|
|
|
+ window.location.href ='[[${sysUrl}]]/sys//train/file/list.html';
|
|
|
},1000);
|
|
|
}else{
|
|
|
layer.msg(data.meta.message,{icon:11});
|