Changeset 5830

Show
Ignore:
Timestamp:
07/09/08 13:36:17 (5 months ago)
Author:
kinoshita
Message:

5127

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinelz/trunk/compress/javascripts/spinelz/menubar.js

    r5786 r5830  
    44MenuBar.mark={dir:">>"}; 
    55MenuBar.prototype={initialize:function(_1){ 
    6 this.options=Object.extend({build:true,callbackClickMenu:Prototype.emptyFunction,cssPrefix:"custom_",hideOnClickSubmenu:true},arguments[1]||{}); 
     6this.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]||{}); 
    77this.element=$(_1); 
    88this.classNames=CssUtil.getInstance(this.options.cssPrefix,MenuBar.cssNames).allJoinClassNames(); 
     
    139139} 
    140140},show:function(_26){ 
     141this.options.beforeShow(_26); 
    141142_26.style.visibility="visible"; 
     143this.options.afterShow(_26); 
    142144},hide:function(_27){ 
     145this.options.beforeHide(_27); 
    143146_27.style.visibility="hidden"; 
     147this.options.afterHide(_27); 
    144148},getContainer:function(_28){ 
    145149if(!_28){ 
  • spinelz/trunk/compress/javascripts/spinelz/spinelz_for_rubricks.js

    r5829 r5830  
    31603160MenuBar.mark={dir:">>"}; 
    31613161MenuBar.prototype={initialize:function(_1){ 
    3162 this.options=Object.extend({build:true,callbackClickMenu:Prototype.emptyFunction,cssPrefix:"custom_",hideOnClickSubmenu:true},arguments[1]||{}); 
     3162this.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]||{}); 
    31633163this.element=$(_1); 
    31643164this.classNames=CssUtil.getInstance(this.options.cssPrefix,MenuBar.cssNames).allJoinClassNames(); 
     
    32953295} 
    32963296},show:function(_26){ 
     3297this.options.beforeShow(_26); 
    32973298_26.style.visibility="visible"; 
     3299this.options.afterShow(_26); 
    32983300},hide:function(_27){ 
     3301this.options.beforeHide(_27); 
    32993302_27.style.visibility="hidden"; 
     3303this.options.afterHide(_27); 
    33003304},getContainer:function(_28){ 
    33013305if(!_28){ 
  • spinelz/trunk/src/javascripts/spinelz/menubar.js

    r5786 r5830  
    4545      callbackClickMenu:  Prototype.emptyFunction, 
    4646      cssPrefix:          'custom_', 
    47       hideOnClickSubmenu: true 
     47      hideOnClickSubmenu: true, 
     48      beforeShow:         Prototype.emptyFunction, 
     49      afterShow:          Prototype.emptyFunction, 
     50      beforeHide:         Prototype.emptyFunction, 
     51      afterHide:          Prototype.emptyFunction 
    4852    }, arguments[1] || {}); 
    4953    this.element = $(element); 
     
    204208   
    205209  show: function(element) { 
     210    this.options.beforeShow(element); 
    206211    element.style.visibility = 'visible'; 
     212    this.options.afterShow(element); 
    207213  },  
    208214   
    209215  hide: function(element) { 
     216    this.options.beforeHide(element); 
    210217    element.style.visibility = 'hidden'; 
     218    this.options.afterHide(element); 
    211219  }, 
    212220