From 7a91ab5ef57ff1843a8213dd0f96df84ec8962de Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Tue, 11 Oct 2022 00:42:45 +0200 Subject: [PATCH] =?UTF-8?q?Button=20cancel=20s=C3=A9l=C3=A9ction=20more=20?= =?UTF-8?q?visible=20in=20desktop=20and=20mobile=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/organization.js | 6 ++++++ templates/organization.html.php | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/js/organization.js b/public/js/organization.js index dc583bf..7de8f65 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -494,6 +494,7 @@ var updateGlobalState = function() { button.setAttribute('disabled', 'disabled'); }); document.querySelector('#container_btn_select .card-header span').innerText = "Aucune"; + document.querySelector('#container_btn_select .card-footer').classList.add('d-none'); document.querySelector('#backdrop_drag_mode').classList.add('d-none') document.querySelector('#div-margin-top').classList.remove('d-none'); document.querySelector('#div-margin-bottom').classList.remove('d-none');; @@ -519,6 +520,7 @@ var updateGlobalState = function() { button.classList.remove('btn-outline-secondary'); button.removeAttribute('disabled'); }); + document.querySelector('#container_btn_select .card-footer').classList.remove('d-none'); document.querySelectorAll('.canvas-container .btn-add').forEach(function(button) { button.classList.remove('d-none'); }); @@ -621,6 +623,10 @@ var createEventsListener = function() { nbPagePerLine--; pageRenderAll(); }); + document.getElementById('btn_cancel_select_footer').addEventListener('click', function(event) { + document.getElementById('btn_cancel_select').click(); + this.blur(); + }); document.getElementById('btn_cancel_select_mobile').addEventListener('click', function(event) { document.getElementById('btn_cancel_select').click(); this.blur(); diff --git a/templates/organization.html.php b/templates/organization.html.php index af16da1..0fdf52f 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -44,7 +44,7 @@
-
+
@@ -76,6 +76,7 @@
+
@@ -102,7 +103,10 @@
-
Aucune page(s) séléctionnée(s)
+
+ +
+
Aucune page(s)