Przeglądaj źródła

Mtooltips修改

unknown 5 lat temu
rodzic
commit
af86a8b995

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

@@ -50,7 +50,7 @@ var MSelector = new Class({
             this.cssPath = "../x_component_Template/$MSelector/"+this.options.style+"/css.wcss";
             this.cssPath = "../x_component_Template/$MSelector/"+this.options.style+"/css.wcss";
             this._loadCss();
             this._loadCss();
             if( css ){
             if( css ){
-                this.css = Object.merge( this.css, css )
+                this.css = Object.merge( Object.clone(this.css), css )
             }
             }
         }
         }
 
 

+ 2 - 0
o2web/source/x_component_Template/MTooltips.js

@@ -176,6 +176,8 @@ var MTooltips = new Class({
         this.fireEvent("queryCreate",[this]);
         this.fireEvent("queryCreate",[this]);
         this.loadStyle();
         this.loadStyle();
 
 
+        this.fireEvent("loadStyle",[this]);
+
         this.node = new Element("div.tooltipNode", {
         this.node = new Element("div.tooltipNode", {
             styles : this.nodeStyles
             styles : this.nodeStyles
         }).inject( this.container );
         }).inject( this.container );