From 6588ff91b775da3becc027509dd9efa7103e3252 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Sat, 8 Oct 2022 00:29:16 +0200 Subject: [PATCH] [Organization] Blur button after action on mobile --- public/js/organization.js | 4 ++++ templates/organization.html.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/organization.js b/public/js/organization.js index 8564dc9..c5c3ab9 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -525,6 +525,7 @@ var degreesToOrientation = function(degrees) { var createEventsListener = function() { document.getElementById('save-select_mobile').addEventListener('click', function(event) { document.getElementById('save').click(); + this.blur(); }); document.getElementById('save-select').addEventListener('click', function(event) { document.getElementById('save').click(); @@ -586,6 +587,7 @@ var createEventsListener = function() { }); document.getElementById('btn_cancel_select_mobile').addEventListener('click', function(event) { document.getElementById('btn_cancel_select').click(); + this.blur(); }); document.getElementById('btn_cancel_select').addEventListener('click', function(event) { document.querySelectorAll('.input-select:checked').forEach(function(input) { @@ -594,6 +596,7 @@ var createEventsListener = function() { }); document.getElementById('btn_delete_select_mobile').addEventListener('click', function(event) { document.getElementById('btn_delete_select').click(); + this.blur(); }); document.getElementById('btn_delete_select').addEventListener('click', function(event) { let pages = getPagesSelected(); @@ -604,6 +607,7 @@ var createEventsListener = function() { }); document.getElementById('btn_rotate_select_mobile').addEventListener('click', function(event) { document.getElementById('btn_rotate_select').click(); + this.blur(); }); document.getElementById('btn_rotate_select').addEventListener('click', function(event) { let pages = getPagesSelected(); diff --git a/templates/organization.html.php b/templates/organization.html.php index 9c5cff0..b9a3667 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -98,7 +98,7 @@
  • document.pdf
  • - +
    Aucune page(s) séléctionnée(s)