Skip to content

Commit

Permalink
[organization] In drag and drop mode if you deselect a page it deacti…
Browse files Browse the repository at this point in the history
…vates the drag and drop mode
  • Loading branch information
wincelau committed Oct 4, 2024
1 parent 51f0cb6 commit d23e0eb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion public/js/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,21 @@ function selectPage(page, state) {
}

function toggleSelectPage(page) {
if(isPageDeleted(page) || isPageDragged(page) || isDraggedMode()) {
if(isPageDeleted(page)) {
return;
}

if(!isPageDragged(page) && isDraggedMode()) {
return;
}

if(isPageDragged(page)) {
document.getElementById('btn_drag_select').click();
return;
}

selectPage(page, !isPageSelected(page));

updateGlobalState();
}

Expand Down

0 comments on commit d23e0eb

Please sign in to comment.