Skip to content

Commit

Permalink
Re-calculate the sort order values when sorting from the backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericp-mrel committed Jan 4, 2024
1 parent 3c48e60 commit c87b12a
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 c87b12a

Please sign in to comment.