aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2010-01-20 17:43:30 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2010-01-20 17:43:30 +0000
commitd01e785c988b25d584e8d2bf17cf3f1a699e263c (patch)
treedd2460a91852ddb0127c651a55e5e7d7b8a2cdcf
parentaba705c91d96f275830cf5fc4b4670c8f309e742 (diff)
downloadjquery-ui-d01e785c988b25d584e8d2bf17cf3f1a699e263c.tar.gz
jquery-ui-d01e785c988b25d584e8d2bf17cf3f1a699e263c.zip
button: don't log a click on disabled buttons
-rw-r--r--tests/visual/button/default.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/visual/button/default.html b/tests/visual/button/default.html
index c3d20e0cd..4aee19260 100644
--- a/tests/visual/button/default.html
+++ b/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");