diff --git a/module/common/view/kindeditor.html.php b/module/common/view/kindeditor.html.php index 9ca6c6e4d2..459f9f82bd 100644 --- a/module/common/view/kindeditor.html.php +++ b/module/common/view/kindeditor.html.php @@ -44,7 +44,7 @@ $(document).ready(function() KindEditor.ready(function(K) { - editor = K.create('#' + editorID, + keEditor = K.create('#' + editorID, { items:editorTool, filterMode:true, @@ -52,12 +52,8 @@ $(document).ready(function() urlType:'relative', uploadJson: createLink('file', 'ajaxUpload'), allowFileManager:true, - langType:'' - }); - - $('form').submit(function() - { - K.sync('#'+editor.id); + langType:'', + afterBlur: function(){this.sync();} }); }); }) diff --git a/www/js/jquery/form/zentao.js b/www/js/jquery/form/zentao.js index 844892daed..a68357531a 100644 --- a/www/js/jquery/form/zentao.js +++ b/www/js/jquery/form/zentao.js @@ -79,8 +79,8 @@ $.extend( /* Call ajaxSubmit to sumit the form. */ form.submit(function() { - $(this).ajaxSubmit(options); - return false; // Prevent the submitting event of the browser. + $(this).ajaxSubmit(options); + return false; // Prevent the submitting event of the browser. }); },