소스 검색

修复内容管理脚本报错

unknown 5 년 전
부모
커밋
d555c95a98
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      o2web/source/o2_core/o2/xScript/CMSMacro.js

+ 4 - 4
o2web/source/o2_core/o2/xScript/CMSMacro.js

@@ -81,8 +81,8 @@ MWF.CMSMacro.CMSFormContext = new Class({
 
 
 });
 });
 
 
-if( !MWF.Macro.ViewContext ){
-    MWF.Macro.ViewContext = new Class({
+if( !MWF.CMSMacro.ViewContext ){
+    MWF.CMSMacro.ViewContext = new Class({
         macroFunction: null,
         macroFunction: null,
         environment: {},
         environment: {},
         initialize: function(view){
         initialize: function(view){
@@ -112,7 +112,7 @@ if( !MWF.Macro.ViewContext ){
         },
         },
         exec: function(code, target){
         exec: function(code, target){
             this.setTarget(target);
             this.setTarget(target);
-            var returnValue = MWF.Macro.exec(code, this.environment);
+            var returnValue = MWF.CMSMacro.exec(code, this.environment);
             //this.form.businessData.data = Object.merge(this.form.businessData.data, this.environment.data);
             //this.form.businessData.data = Object.merge(this.form.businessData.data, this.environment.data);
 
 
             return returnValue;
             return returnValue;
@@ -122,7 +122,7 @@ if( !MWF.Macro.ViewContext ){
         fire: function(code, target, event){
         fire: function(code, target, event){
             this.setTarget(target);
             this.setTarget(target);
             this.setEvent(event);
             this.setEvent(event);
-            return MWF.Macro.exec(code, this.environment);
+            return MWF.CMSMacro.exec(code, this.environment);
         }
         }
     });
     });
 }
 }