PDA

View Full Version : [2.0 SVN-1226][SOLVED] SplitButton enable()



vivid-planet
17 Oct 2007, 11:11 PM
Hello,

the onEnable function should do the same as onDisable (of course not exactly the same :D)

this patch fixes it:

Index: src/widgets/SplitButton.js
===================================================================
--- src/widgets/SplitButton.js (Revision 1223)
+++ src/widgets/SplitButton.js (Arbeitskopie)
@@ -128,7 +128,7 @@
if(!Ext.isIE6){
this.el.removeClass("x-item-disabled");
}
- this.el.select('button').set('disabled', false);
+ this.el.select('button').set({disabled:false}, false);
}
this.disabled = false;
},


if you need a testcase i could create one, but i think this is not necessary.

thanks,
niko

mystix
18 Oct 2007, 12:15 AM
:-/ which SVN revision is this for?

vivid-planet
18 Oct 2007, 2:38 AM
the latest - 1226

vivid-planet
21 Oct 2007, 9:36 PM
issue has been solved in revision 1250.