Opened 14 years ago
Closed 14 years ago
#2409 closed defect (wontfix)
Toolbar setEnabled(X,X, true) does not prevent the default action
Reported by: | 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 14 years ago by
Milestone: | 0.4.2 → 0.9 |
---|
comment:2 Changed 14 years ago by
Component: | Widgets → Dijit |
---|---|
Owner: | changed from bill to liucougar |
comment:3 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Toolbar rewritten for 0.9