Skip to content
Permalink
Browse files

button: don't log a click on disabled buttons

  • Loading branch information
jzaefferer committed Jan 20, 2010
1 parent aba705c commit d01e785c988b25d584e8d2bf17cf3f1a699e263c
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/visual/button/default.html
@@ -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");

0 comments on commit d01e785

Please sign in to comment.
You can’t perform that action at this time.