Преглед изворни кода

修改脚本编辑器输入的bug

huqi пре 5 година
родитељ
комит
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();
                         }

Неке датотеке нису приказане због велике количине промена