From 5ebafdedddb94747e754905c293e2704d612c8c4 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 7 Jan 2014 03:40:28 +0100 Subject: [PATCH] Demos: highlight is now correctly removed on cancelation In swipe to delete demo, the highlight is properly removed from the selected list item on cancelation of the deletion. Fixes #6892 --- demos/swipe-list/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/swipe-list/index.php b/demos/swipe-list/index.php index 5210b5710a2..40beca960db 100644 --- a/demos/swipe-list/index.php +++ b/demos/swipe-list/index.php @@ -75,7 +75,7 @@ function confirmAndDelete( listitem, transition ) { }); // Remove active state and unbind when the cancel button is clicked $( "#confirm #cancel" ).on( "click", function() { - listitem.removeClass( "ui-btn-active" ); + listitem.children( ".ui-btn" ).removeClass( "ui-btn-active" ); $( "#confirm #yes" ).off(); }); }