Opened 13 years ago

Closed 12 years ago

#2409 closed defect (wontfix)

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

Reported by: will@… Owned by: liucougar
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4.1
Keywords: toolbar setEnabled toolbarbutton button Cc:
Blocked By: Blocking:

Description

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

e.g.

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 13 years ago by alex

Milestone: 0.4.20.9

comment:2 Changed 12 years ago by bill

Component: WidgetsDijit
Owner: changed from bill to liucougar

comment:3 Changed 12 years ago by Adam Peller

Resolution: wontfix
Status: newclosed

Toolbar rewritten for 0.9

Note: See TracTickets for help on using tickets.