Opened 15 years ago

Closed 15 years ago

#2409 closed defect (wontfix)

Toolbar setEnabled(X,X, true) does not prevent the default action

Reported by: [email protected] Owned by: liucougar
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4.1
Keywords: toolbar setEnabled toolbarbutton button Cc:
Blocked By: Blocking:


Preventing the default action of a toolbar button does not work.


var restore = dojo.widget.createWidget("ToolbarButton?", {

name: "restore", icon: "img/kcmkwm.png"


dojo.event.connect(restore.domNode, "onclick", function(){ restoreWindows(); });

restore.setEnabled(false, true, true);

The button gets greyed out (disabled) however, on clicking the button, the function is still called.

Change History (3)

comment:1 Changed 15 years ago by alex


comment:2 Changed 15 years ago by bill

Component: WidgetsDijit
Owner: changed from bill to liucougar

comment:3 Changed 15 years ago by Adam Peller

Resolution: wontfix
Status: newclosed

Toolbar rewritten for 0.9

Note: See TracTickets for help on using tickets.