mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
More robust logic if isMiniScreen or isShowDesktopDragHandles
This commit is contained in:
parent
b59e4d8fc7
commit
7ced602be4
3 changed files with 3 additions and 3 deletions
|
|
@ -195,7 +195,7 @@ BlazeComponent.extendComponent({
|
||||||
$swimlanesDom.sortable({
|
$swimlanesDom.sortable({
|
||||||
handle: '.js-swimlane-header-handle',
|
handle: '.js-swimlane-header-handle',
|
||||||
});
|
});
|
||||||
} else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
|
} else {
|
||||||
$swimlanesDom.sortable({
|
$swimlanesDom.sortable({
|
||||||
handle: '.swimlane-header',
|
handle: '.swimlane-header',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ BlazeComponent.extendComponent({
|
||||||
$cards.sortable({
|
$cards.sortable({
|
||||||
handle: '.handle',
|
handle: '.handle',
|
||||||
});
|
});
|
||||||
} else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
|
} else {
|
||||||
$cards.sortable({
|
$cards.sortable({
|
||||||
handle: '.minicard',
|
handle: '.minicard',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ function initSortable(boardComponent, $listsDom) {
|
||||||
$listsDom.sortable({
|
$listsDom.sortable({
|
||||||
handle: '.js-list-handle',
|
handle: '.js-list-handle',
|
||||||
});
|
});
|
||||||
} else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
|
} else {
|
||||||
$listsDom.sortable({
|
$listsDom.sortable({
|
||||||
handle: '.js-list-header',
|
handle: '.js-list-header',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue