Piggy bank can now have a group.

This commit is contained in:
James Cole
2020-06-07 11:31:01 +02:00
parent 2f63090e7c
commit 16b0307b0a
20 changed files with 439 additions and 105 deletions

View File

@@ -38,6 +38,7 @@ $(function () {
{
helper: fixHelper,
stop: stopSorting,
items: 'tr.sortable',
handle: '.handle',
start: function (event, ui) {
// Build a placeholder cell that spans all the cells in the row
@@ -84,7 +85,7 @@ function stopSorting() {
"use strict";
$('.loadSpin').addClass('fa fa-refresh fa-spin');
$.each($('#sortable-piggy>tbody>tr'), function (i, v) {
$.each($('#sortable-piggy>tbody>tr.sortable'), function (i, v) {
var holder = $(v);
var position = parseInt(holder.data('position'));
var originalOrder = parseInt(holder.data('order'));
@@ -110,4 +111,4 @@ function stopSorting() {
});
$('.loadSpin').removeClass('fa fa-refresh fa-spin');
}
}