Opened 14 years ago

Last modified 13 years ago

#2009 closed defect

Menu2/MenuItem2 disabled context menu items get class 'undefined' — at Initial Version

Reported by: guest Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4
Keywords: Cc: [email protected]
Blocked By: Blocking:

Description

Disabled context menu's (from a tree context menu in my case - but it does not really matter) won't be grayed out because these items get the class 'undefined':

Menu2.js should read in function setDisabled (currently #526 and #528):


... dojo.html.addClass(this.domNode, this.parent.disabledClass); ... dojo.html.removeClass(this.domNode, this.parent.disabledClass); ...


instead of


... dojo.html.addClass(this.domNode, this.disabledClass); ... dojo.html.removeClass(this.domNode, this.disabledClass); ...


because the class "disabledClass" is defined in PopupMenu2 and not in MenuItem2.

Thx!

Change History (0)

Note: See TracTickets for help on using tickets.