From d01e785c988b25d584e8d2bf17cf3f1a699e263c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Wed, 20 Jan 2010 17:43:30 +0000 Subject: [PATCH] button: don't log a click on disabled buttons --- tests/visual/button/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/visual/button/default.html b/tests/visual/button/default.html index c3d20e0cdc9..4aee1926091 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) { $("
") .text("Clicked " + (target.text() || target.val())) .appendTo("#log");