mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Make it compatible with newer and older versions of jQuery sortable
While at it, fix comments and prettify it.
This commit is contained in:
parent
7cf8487f57
commit
6d1cdebfe2
4 changed files with 11 additions and 7 deletions
|
|
@ -279,10 +279,10 @@ BlazeComponent.extendComponent({
|
|||
// Disable sorting if the current user is not a board member
|
||||
this.autorun(() => {
|
||||
const disabled = !userIsMember() || Utils.isMiniScreen();
|
||||
if ($checklistsDom.data('uiSortable')) {
|
||||
if ($checklistsDom.data('uiSortable') || $checklistsDom.data('sortable')) {
|
||||
$checklistsDom.sortable('option', 'disabled', disabled);
|
||||
}
|
||||
if ($subtasksDom.data('uiSortable')) {
|
||||
if ($subtasksDom.data('uiSortable') || $subtasksDom.data('sortable')) {
|
||||
$subtasksDom.sortable('option', 'disabled', disabled);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue