diff --git a/public/js/organization.js b/public/js/organization.js index 8d21a8c..ca7cf9e 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -434,11 +434,11 @@ function updatePageState(page) { page.querySelector('.btn-drag').classList.remove('d-none'); } - if(isPageHover(page) && isPageDeleted(page)) { + if(isPageHover(page) && isPageDeleted(page) && !isDraggedMode()) { page.querySelector('.btn-restore').classList.remove('d-none'); } - if(is_mobile() && isPageDeleted(page)) { + if(is_mobile() && isPageDeleted(page) && !isDraggedMode()) { page.querySelector('.btn-restore').classList.remove('d-none'); } @@ -456,7 +456,7 @@ function updatePageState(page) { page.querySelector('.canvas-pdf').classList.add('shadow'); } - if(!isPageDragged(page) && isDraggedMode()) { + if(!isPageDragged(page) && !isPageDeleted(page) && isDraggedMode()) { page.querySelector('.canvas-pdf').classList.add('opacity-50'); page.querySelector('.btn-drag-here').classList.remove('d-none'); }