Skip to content

Commit

Permalink
Recalculate the sort order values when sorting from the backend. (#1028)
Browse files Browse the repository at this point in the history
Fixes #881. Replaces #882.
  • Loading branch information
ericp-mrel authored Jan 6, 2024
1 parent 3c48e60 commit b630ce9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
this.initSortingSimple = function () {
var sortOrders = []

$('#reorderTreeList li').each(function(){
sortOrders.push($(this).data('recordSortOrder'))
$('#reorderTreeList li').each(function(i) {
sortOrders.push(i);
})

this.simpleSortOrders = sortOrders
Expand All @@ -79,4 +79,4 @@
}

$.wn.reorderBehavior = new ReorderBehavior;
}(window.jQuery);
}(window.jQuery);

0 comments on commit b630ce9

Please sign in to comment.