Przeglądaj źródła

支持主流框架,一些路径解析修改

huqi 5 lat temu
rodzic
commit
f72b4fb505

+ 2 - 2
o2web/source/o2_core/o2/widget/Common.js

@@ -13,7 +13,7 @@ o2.widget.Common = new Class({
         }else{
             this.cssPath = (this.cssPath.indexOf("?")!=-1) ? this.cssPath+"&v="+o2.version.v : this.cssPath+"?v="+o2.version.v;
             var r = new Request.JSON({
-                url: this.cssPath,
+                url: o2.filterUrl(this.cssPath),
                 secure: false,
                 async: false,
                 method: "get",
@@ -63,4 +63,4 @@ o2.widget.Common = new Class({
 		});
 		return false;
 	}
-});
+});

+ 1 - 1
o2web/source/x_component_Template/MPopupForm.js

@@ -77,7 +77,7 @@ MWF.xApplication.Template.MPopupForm = MPopupForm = new Class({
     _loadCss: function(){
         var css = {};
         var r = new Request.JSON({
-            url: this.cssPath,
+            url: o2.filterUrl(this.cssPath),
             secure: false,
             async: false,
             method: "get",

+ 1 - 1
o2web/source/x_component_Template/widget/ColorPicker.js

@@ -45,7 +45,7 @@ MWF.xApplication.Template.widget.ColorPicker = new Class({
         }else{
             this.cssPath = (this.cssPath.indexOf("?")!=-1) ? this.cssPath+"&v="+COMMON.version : this.cssPath+"?v="+COMMON.version;
             var r = new Request.JSON({
-                url: this.cssPath,
+                url: o2.filterUrl(this.cssPath),
                 secure: false,
                 async: false,
                 method: "get",