Make it compatible with newer and older versions of jQuery sortable

While at it, fix comments and prettify it.
This commit is contained in:
Marc Hartmayer 2020-04-25 09:48:56 +02:00
parent 7cf8487f57
commit 6d1cdebfe2
4 changed files with 11 additions and 7 deletions

View file

@ -139,7 +139,7 @@ BlazeComponent.extendComponent({
});
}
if ($cards.data('uiSortable')) {
if ($cards.data('uiSortable') || $cards.data('sortable')) {
$cards.sortable(
'option',
'disabled',