1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

[Organization] Blur button after action on mobile

This commit is contained in:
Vincent LAURENT 2022-10-08 00:29:16 +02:00
parent 6c5a1f7006
commit 6588ff91b7
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -98,7 +98,7 @@
<li><a class="dropdown-item" href="#">document.pdf</a></li>
</ul>
</div>
<button type="button" class="btn btn-outline-dark" onclick="document.getElementById('input_pdf_upload_2').click();"><i class="bi bi-plus-circle"></i>&nbsp;Ajouter&nbsp;un&nbsp;PDF</button>
<button type="button" class="btn btn-outline-dark" onclick="document.getElementById('input_pdf_upload_2').click(); this.blur();"><i class="bi bi-plus-circle"></i> Ajouter un PDF</button>
</div>
<div id="top_bar_action_selection" class="d-none">
<div id="top_bar_action_selection_recap" class="bg-primary small text-white text-center rounded-top p-1"><span>Aucune</span> page(s) séléctionnée(s) <button id="btn_cancel_select_mobile" type="button" class="btn-close btn-close-white float-end" aria-label="Close"></button></div>