Просмотр исходного кода

修改脚本编辑器输入的bug

huqi 5 лет назад
Родитель
Сommit
16db2b9fff

+ 1 - 1
o2web/source/o2_core/o2/widget/ScriptArea.js

@@ -169,7 +169,7 @@ o2.widget.ScriptArea = new Class({
                 "set": function(v){
                     content.editors.each(function(editor){
                         if (editor.editor){
-                            if (v!==editor.editor.getValue()) editor.editor.setValue(v);
+                            if (v!==editor.editor.getValue()) editor.editor.setValue(v,1);
                         }else{
                             editor.reload();
                         }

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
o2web/source/o2_lib/ace/src-min-noconflict/ace.js


+ 1 - 1
o2web/source/x_component_portal_PageDesigner/Script.js

@@ -920,7 +920,7 @@ MWF.xApplication.portal.PageDesigner.Script.Item = new Class({
                 "set": function(v){
                     this.data.editors.each(function(editor){
                         if (editor.editor){
-                            if (v!==editor.editor.getValue()) editor.editor.setValue(v);
+                            if (v!==editor.editor.getValue()) editor.editor.setValue(v,1);
                         }else{
                             editor.reload();
                         }

Некоторые файлы не были показаны из-за большого количества измененных файлов