Ticket #2409 (closed defect: wontfix)
Toolbar setEnabled(X,X, true) does not prevent the default action
| Reported by: | will@… | Owned by: | liucougar |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 |
| Component: | Dijit | Version: | 0.4.1 |
| Severity: | major | Keywords: | toolbar setEnabled toolbarbutton button |
| Cc: |
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
Note: See
TracTickets for help on using
tickets.