d01e785
click here to add a description
click here to add a homepage
The official jQuery user interface library. — Read more
http://jqueryui.com/
This URL has Read+Write access
button: don't log a click on disabled buttons
Showing 1 changed file with 1 addition and 1 deletion.
@@ -20,7 +20,7 @@
buttons.add(buttonSets).click(function(event) {
var target = $(event.target);
- if (target.closest('.ui-button').length) {
+ if (target.closest('.ui-button:not(.ui-state-disabled)').length) {
$("<div></div>")
.text("Clicked " + (target.text() || target.val()))
.appendTo("#log");
d01e785