From d01e785c988b25d584e8d2bf17cf3f1a699e263c Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Wed, 20 Jan 2010 17:43:30 +0000 Subject: button: don't log a click on disabled buttons --- tests/visual/button/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/visual/button') 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) { $("
") .text("Clicked " + (target.text() || target.val())) .appendTo("#log"); -- cgit v1.2.3