Changeset 5830
- Timestamp:
- 07/09/08 13:36:17 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinelz/trunk/compress/javascripts/spinelz/menubar.js
r5786 r5830 4 4 MenuBar.mark={dir:">>"}; 5 5 MenuBar.prototype={initialize:function(_1){ 6 this.options=Object.extend({build:true,callbackClickMenu:Prototype.emptyFunction,cssPrefix:"custom_",hideOnClickSubmenu:true },arguments[1]||{});6 this.options=Object.extend({build:true,callbackClickMenu:Prototype.emptyFunction,cssPrefix:"custom_",hideOnClickSubmenu:true,beforeShow:Prototype.emptyFunction,afterShow:Prototype.emptyFunction,beforeHide:Prototype.emptyFunction,afterHide:Prototype.emptyFunction},arguments[1]||{}); 7 7 this.element=$(_1); 8 8 this.classNames=CssUtil.getInstance(this.options.cssPrefix,MenuBar.cssNames).allJoinClassNames(); … … 139 139 } 140 140 },show:function(_26){ 141 this.options.beforeShow(_26); 141 142 _26.style.visibility="visible"; 143 this.options.afterShow(_26); 142 144 },hide:function(_27){ 145 this.options.beforeHide(_27); 143 146 _27.style.visibility="hidden"; 147 this.options.afterHide(_27); 144 148 },getContainer:function(_28){ 145 149 if(!_28){ spinelz/trunk/compress/javascripts/spinelz/spinelz_for_rubricks.js
r5829 r5830 3160 3160 MenuBar.mark={dir:">>"}; 3161 3161 MenuBar.prototype={initialize:function(_1){ 3162 this.options=Object.extend({build:true,callbackClickMenu:Prototype.emptyFunction,cssPrefix:"custom_",hideOnClickSubmenu:true },arguments[1]||{});3162 this.options=Object.extend({build:true,callbackClickMenu:Prototype.emptyFunction,cssPrefix:"custom_",hideOnClickSubmenu:true,beforeShow:Prototype.emptyFunction,afterShow:Prototype.emptyFunction,beforeHide:Prototype.emptyFunction,afterHide:Prototype.emptyFunction},arguments[1]||{}); 3163 3163 this.element=$(_1); 3164 3164 this.classNames=CssUtil.getInstance(this.options.cssPrefix,MenuBar.cssNames).allJoinClassNames(); … … 3295 3295 } 3296 3296 },show:function(_26){ 3297 this.options.beforeShow(_26); 3297 3298 _26.style.visibility="visible"; 3299 this.options.afterShow(_26); 3298 3300 },hide:function(_27){ 3301 this.options.beforeHide(_27); 3299 3302 _27.style.visibility="hidden"; 3303 this.options.afterHide(_27); 3300 3304 },getContainer:function(_28){ 3301 3305 if(!_28){ spinelz/trunk/src/javascripts/spinelz/menubar.js
r5786 r5830 45 45 callbackClickMenu: Prototype.emptyFunction, 46 46 cssPrefix: 'custom_', 47 hideOnClickSubmenu: true 47 hideOnClickSubmenu: true, 48 beforeShow: Prototype.emptyFunction, 49 afterShow: Prototype.emptyFunction, 50 beforeHide: Prototype.emptyFunction, 51 afterHide: Prototype.emptyFunction 48 52 }, arguments[1] || {}); 49 53 this.element = $(element); … … 204 208 205 209 show: function(element) { 210 this.options.beforeShow(element); 206 211 element.style.visibility = 'visible'; 212 this.options.afterShow(element); 207 213 }, 208 214 209 215 hide: function(element) { 216 this.options.beforeHide(element); 210 217 element.style.visibility = 'hidden'; 218 this.options.afterHide(element); 211 219 }, 212 220
