Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit b2059ea

Browse files
Florian BöhleGabriel Schulhof
Florian Böhle
authored and
Gabriel Schulhof
committed
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. Closes gh-6893 Fixes gh-6892
1 parent 77b5304 commit b2059ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/swipe-list/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function confirmAndDelete( listitem, transition ) {
7575
});
7676
// Remove active state and unbind when the cancel button is clicked
7777
$( "#confirm #cancel" ).on( "click", function() {
78-
listitem.removeClass( "ui-btn-active" );
78+
listitem.children( ".ui-btn" ).removeClass( "ui-btn-active" );
7979
$( "#confirm #yes" ).off();
8080
});
8181
}

0 commit comments

Comments
 (0)