Ticket #2409 (closed defect: wontfix)

Opened 22 months ago

Last modified 16 months ago

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

Changed 22 months ago by alex

  • milestone changed from 0.4.2 to 0.9

Changed 18 months ago by bill

  • owner changed from bill to liucougar
  • component changed from Widgets to Dijit

Changed 16 months ago by peller

  • status changed from new to closed
  • resolution set to wontfix

Toolbar rewritten for 0.9

Note: See TracTickets for help on using tickets.