|
|
@ -22,6 +22,7 @@ var sortableListFunction = (function () {
|
|
|
|
|
|
|
|
|
|
|
|
var sortableElem = '.wr-sortable',
|
|
|
|
var sortableElem = '.wr-sortable',
|
|
|
|
sortUpdateBtn = '#sortUpdateBtn',
|
|
|
|
sortUpdateBtn = '#sortUpdateBtn',
|
|
|
|
|
|
|
|
applyChangesBtn = '#applyChangesBtn',
|
|
|
|
sortableElemList = [],
|
|
|
|
sortableElemList = [],
|
|
|
|
sortedIDs,
|
|
|
|
sortedIDs,
|
|
|
|
currentElemId,
|
|
|
|
currentElemId,
|
|
|
@ -103,6 +104,7 @@ var sortableListFunction = (function () {
|
|
|
|
insertBefore('span[place="place_' + newValue + '"]');
|
|
|
|
insertBefore('span[place="place_' + newValue + '"]');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$(sortUpdateBtn).prop('disabled', false);
|
|
|
|
$(sortUpdateBtn).prop('disabled', false);
|
|
|
|
|
|
|
|
$(applyChangesBtn).prop('disabled', true);
|
|
|
|
sortedIDs = $(sortableElem).sortable('toArray');
|
|
|
|
sortedIDs = $(sortableElem).sortable('toArray');
|
|
|
|
addSortableIndexNumbers();
|
|
|
|
addSortableIndexNumbers();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -126,6 +128,7 @@ var sortableListFunction = (function () {
|
|
|
|
sortedIDs = $(this).sortable('toArray');
|
|
|
|
sortedIDs = $(this).sortable('toArray');
|
|
|
|
addSortableIndexNumbers();
|
|
|
|
addSortableIndexNumbers();
|
|
|
|
$(sortUpdateBtn).prop('disabled', false);
|
|
|
|
$(sortUpdateBtn).prop('disabled', false);
|
|
|
|
|
|
|
|
$(applyChangesBtn).prop('disabled', true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(sortableElem).disableSelection();
|
|
|
|
$(sortableElem).disableSelection();
|
|
|
|