Changeset 6391

Show
Ignore:
Timestamp:
11/01/06 03:45:35 (2 years ago)
Author:
ilia
Message:

extract disabledClass into widget setting

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/widget/Menu2.js

    r6374 r6391  
    3131        //      number of milliseconds before hovering (without clicking) causes the submenu to automatically open 
    3232        submenuDelay: 500, 
     33         
     34        // String 
     35        //  CSS class for disabled nodes 
     36        disabledClass: 'dojoMenuItem2Disabled', 
    3337         
    3438        // Integer 
     
    520524 
    521525                if (this.disabled){ 
    522                         dojo.html.addClass(this.domNode, 'dojoMenuItem2Disabled'); 
     526                        dojo.html.addClass(this.domNode, this.disabledClass); 
    523527                }else{ 
    524                         dojo.html.removeClass(this.domNode, 'dojoMenuItem2Disabled'); 
     528                        dojo.html.removeClass(this.domNode, this.disabledClass); 
    525529                } 
    526530        },