@@ 122-153 (lines=32) @@ | ||
119 | * @param: skin - skin name |
|
120 | * @type: public |
|
121 | */ |
|
122 | this.setSkin = function(skin) { |
|
123 | var oldSkin = this.skin; |
|
124 | this.skin = skin; |
|
125 | switch (this.skin){ |
|
126 | case "dhx_black": |
|
127 | case "dhx_blue": |
|
128 | case "dhx_skyblue": |
|
129 | case "dhx_web": |
|
130 | this._topLevelBottomMargin = 2; |
|
131 | this._topLevelRightMargin = 1; |
|
132 | this._topLevelOffsetLeft = 1; |
|
133 | this._arrowFFFix = (_isIE?(document.compatMode=="BackCompat"?0:-4):-4); |
|
134 | break; |
|
135 | case "dhx_web": |
|
136 | this._arrowFFFix = 0; |
|
137 | break; |
|
138 | case "dhx_terrace": |
|
139 | this._topLevelBottomMargin = 0; |
|
140 | this._topLevelRightMargin = 0; |
|
141 | this._topLevelOffsetLeft = 0; |
|
142 | this._arrowFFFix = (_isIE?(document.compatMode=="BackCompat"?0:-4):-4); |
|
143 | break; |
|
144 | } |
|
145 | if (this.base._autoSkinUpdate) { |
|
146 | this.base.className = this.base.className.replace("dhtmlxMenu_"+oldSkin+"_Middle", "")+" dhtmlxMenu_"+this.skin+"_Middle"; |
|
147 | } |
|
148 | ||
149 | for (var a in this.idPull) { |
|
150 | this.idPull[a].className = String(this.idPull[a].className).replace(oldSkin, this.skin); |
|
151 | ||
152 | } |
|
153 | } |
|
154 | this.setSkin(this.skin); |
|
155 | // |
|
156 | this.dLoad = false; |
@@ 119-144 (lines=26) @@ | ||
116 | * @param: skin - skin name |
|
117 | * @type: public |
|
118 | */ |
|
119 | this.setSkin = function(skin) { |
|
120 | var oldSkin = this.skin; |
|
121 | this.skin = skin; |
|
122 | switch (this.skin){ |
|
123 | case "dhx_black": |
|
124 | case "dhx_blue": |
|
125 | case "dhx_skyblue": |
|
126 | case "dhx_web": |
|
127 | this._topLevelBottomMargin = 2; |
|
128 | this._topLevelRightMargin = 1; |
|
129 | this._topLevelOffsetLeft = 1; |
|
130 | this._arrowFFFix = (_isIE?(document.compatMode=="BackCompat"?0:-4):-4); |
|
131 | break; |
|
132 | case "dhx_web": |
|
133 | this._arrowFFFix = 0; |
|
134 | break; |
|
135 | } |
|
136 | if (this.base._autoSkinUpdate) { |
|
137 | this.base.className = this.base.className.replace("dhtmlxMenu_"+oldSkin+"_Middle", "")+" dhtmlxMenu_"+this.skin+"_Middle"; |
|
138 | } |
|
139 | ||
140 | for (var a in this.idPull) { |
|
141 | this.idPull[a].className = String(this.idPull[a].className).replace(oldSkin, this.skin); |
|
142 | ||
143 | } |
|
144 | } |
|
145 | this.setSkin(this.skin); |
|
146 | // |
|
147 | this.dLoad = false; |