Skip to content

Commit 2ca8c56

Browse files
committed
Merged in [14354] from rcross@amsl.com:
Fix problem where slide reordering is not retained. Fixes ietf-tools#2405. - Legacy-Id: 14357 Note: SVN reference [14354] has been migrated to Git commit fec655c
2 parents 5ac6cf3 + fec655c commit 2ca8c56

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/templates/meeting/session_details.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ <h1>{{ meeting }} : {{ acronym }}</h1>
6969

7070
$(".slides tbody").sortable({
7171
helper: rowWidthHelper,
72-
stop: function(event,ui) {adjustDatabase("#slides")}
72+
stop: function(event,ui) {adjustDatabase(ui.item.parent())}
7373
}).disableSelection();
7474
});
7575

76-
function adjustDatabase(tableID) {
77-
$(tableID + " tr").each(function() {
76+
function adjustDatabase(tbody) {
77+
tbody.find('tr').each(function() {
7878
count = $(this).parent().children().index($(this)) + 1;
7979
old_order = $(this).attr("data-order");
8080
if ( count != old_order ) {

0 commit comments

Comments
 (0)