From ad4be4c0f1ff2c38a42b3f6ed3e196573e7c2b33 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Thu, 10 Jul 2025 00:50:15 +0200 Subject: [PATCH 1/2] organization: button "Download selection" instead of "Download full PDF" when pages selected --- public/js/organization.js | 26 +++++++++++++++++--------- templates/organization.html.php | 5 +++-- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/public/js/organization.js b/public/js/organization.js index 8302f61..ae20821 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -526,7 +526,8 @@ function updateGlobalState() { document.querySelector('#top_bar_action_selection').classList.add('d-none'); document.querySelector('#bottom_bar_action').classList.remove('d-none'); document.querySelector('#bottom_bar_action_selection').classList.add('d-none'); - document.querySelector('#save').removeAttribute('disabled'); + document.querySelector('#save').classList.remove('d-none'); + document.querySelector('#save_select').classList.add('d-none'); if(isSelectionMode()) { document.querySelector('#container_btn_select .card-header span').innerText = document.querySelectorAll('.canvas-container .input-select:checked').length; @@ -548,7 +549,8 @@ function updateGlobalState() { document.querySelector('#top_bar_action').classList.add('d-none'); document.querySelector('#bottom_bar_action_selection').classList.remove('d-none'); document.querySelector('#bottom_bar_action').classList.add('d-none'); - document.querySelector('#save').setAttribute('disabled', 'disabled'); + document.querySelector('#save').classList.add('d-none'); + document.querySelector('#save_select').classList.remove('d-none'); } } @@ -757,17 +759,23 @@ function getPDFTags(node) { } function createEventsListener() { - document.getElementById('save-select_mobile').addEventListener('click', async function(event) { + document.getElementById('save_select_mobile').addEventListener('click', async function(event) { event.preventDefault(); - startProcessingMode(document.getElementById('save-select_mobile')); + startProcessingMode(document.getElementById('save_select_mobile')); await saveAll(); - endProcessingMode(document.getElementById('save-select_mobile')); + endProcessingMode(document.getElementById('save_select_mobile')); }); - document.getElementById('save-select').addEventListener('click', async function(event) { + document.getElementById('btn_extract_select').addEventListener('click', async function(event) { event.preventDefault(); - startProcessingMode(document.getElementById('save-select')); + startProcessingMode(document.getElementById('btn_extract_select')); await saveAll(); - endProcessingMode(document.getElementById('save-select')); + endProcessingMode(document.getElementById('btn_extract_select')); + }); + document.getElementById('save_select').addEventListener('click', async function(event) { + event.preventDefault(); + startProcessingMode(document.getElementById('save_select')); + await saveAll(); + endProcessingMode(document.getElementById('save_select')); }); document.getElementById('save').addEventListener('click', async function(e) { e.preventDefault(); @@ -850,7 +858,7 @@ function createEventsListener() { document.querySelector('#btn_liste_pdf').click(); }); document.querySelector('body').addEventListener('click', function(event) { - if(!event.originalTarget.classList.contains('offcanvas-header') && !event.originalTarget.classList.contains('offcanvas-body') && event.originalTarget.id != 'container-pages' && event.originalTarget.id != 'sidebarToolsLabel' && event.originalTarget.id != 'btn_container') { + if(!event.originalTarget.classList.contains('offcanvas-header') && !event.originalTarget.classList.contains('offcanvas-body') && event.originalTarget.id != 'container-pages' && event.originalTarget.id != 'sidebarTools' && event.originalTarget.id != 'sidebarToolsLabel' && event.originalTarget.id != 'btn_container') { return; } document.getElementById('btn_cancel_select').click(); diff --git a/templates/organization.html.php b/templates/organization.html.php index 14f83bf..52ba3b3 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -63,7 +63,7 @@ - + @@ -80,6 +80,7 @@ + @@ -108,7 +109,7 @@
- +
From cf258fe5dda0e428f7d0a585512abd5819b84ff4 Mon Sep 17 00:00:00 2001 From: Gabriel Poma Date: Thu, 10 Jul 2025 12:13:45 +0200 Subject: [PATCH 2/2] deletion: update translations strings --- locale/application.pot | 5 ++++- ...tion_c479b5d34314b99dec204dd64d6ee053.pot} | 0 locale/ar/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/br/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/de/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/es/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/eu/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/fr/LC_MESSAGES/application.mo | Bin 12374 -> 12544 bytes locale/fr/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/gl/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/it/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/kab/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/ko/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/oc/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/pl/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/ro/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/ta/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 locale/tr/LC_MESSAGES/application.po | 5 ++++- ...ation_c479b5d34314b99dec204dd64d6ee053.mo} | 0 templates/signature.html.php | 6 +++--- 34 files changed, 67 insertions(+), 19 deletions(-) rename locale/{application_8a72ce65b528567cb4213988528cad8c.pot => application_c479b5d34314b99dec204dd64d6ee053.pot} (100%) rename locale/ar/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/br/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/de/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/es/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/eu/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/fr/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/gl/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/it/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/kab/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/ko/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/oc/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/pl/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/ro/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/ta/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) rename locale/tr/LC_MESSAGES/{application_8a72ce65b528567cb4213988528cad8c.mo => application_c479b5d34314b99dec204dd64d6ee053.mo} (100%) diff --git a/locale/application.pot b/locale/application.pot index e5b8e4d..7691cd3 100644 --- a/locale/application.pot +++ b/locale/application.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-09 17:39+0200\n" +"POT-Creation-Date: 2025-07-10 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -525,6 +525,9 @@ msgstr "" msgid "Delete the element" msgstr "" +msgid "Are you sure you want to delete this PDF and the associated signatures?" +msgstr "" + msgid "Text to modify" msgstr "" diff --git a/locale/application_8a72ce65b528567cb4213988528cad8c.pot b/locale/application_c479b5d34314b99dec204dd64d6ee053.pot similarity index 100% rename from locale/application_8a72ce65b528567cb4213988528cad8c.pot rename to locale/application_c479b5d34314b99dec204dd64d6ee053.pot diff --git a/locale/ar/LC_MESSAGES/application.po b/locale/ar/LC_MESSAGES/application.po index 8d9c57f..c369aef 100644 --- a/locale/ar/LC_MESSAGES/application.po +++ b/locale/ar/LC_MESSAGES/application.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-09 17:39+0200\n" +"POT-Creation-Date: 2025-07-10 12:08+0200\n" "PO-Revision-Date: 2023-11-18 05:03+0000\n" "Last-Translator: ButterflyOfFire \n" "Language-Team: Arabic \n" "Language-Team: German \n" "Language-Team: Spanish \n" "Language-Team: Basque Lf3z}MB zTBf2V&1Jd8vRpQ8xSE^cTvPsNk<-b_OB;XaG@JGPz2~^j_`RR!ocEmPeqOzizj>+M z+%;ss;iw~hNoIRve#Z?SJ~$pn7!!(5FkBZp8`BLUQ0K82g(I*#rePS)N8Oi)z0i+c za5whE!$=dh`I-W4nu{2RKVk>`6C<$|`7>=e>49Bv6b{Crn1h3GGpa*%*b(bd4W38U z_cN;D>*&J=!Rs~^a96OW$Tj1~PPo-Q-;1jFDDr1c^Pz^nM~%1zN8(eQj)_diF!W<3 z9!AYzbXVuOeyIA=F_QL8HU-TL5=7y*ME>d z<6)X~Jr*^CBT*wvLng^&qh_ucRc{HZz4fTKVuwvZ6&ypYb`8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&|tU_+#*%2Dt(@tSeJcF(9CdT3&Zkxa;YJM32sP6a$an2$WEJc#sxpsJ*M&2i zPz<035RbZXSL6~)M#gF*P?NJf8u2(2Rib663%8;=I)GZ!qp0gnp>B8yr(q*%yJS!f z4QLc>#RwXHnPRL{;)O>bfXK-4)|d6B&rwQ8 z`DIiEZ=hy)4=IKV`c~PeU52-?1JItz|yy!cx>sm$~!ps2l7-bzJ8@ z{~mRNpHQX$6}w{-Cg4-l9!lVD`ujLkzf&<47oqy|_R`Qu>QSZq7B$jqsFK}9eKCYL z*@d@U9D?e|bJpQV&Kt46u4CtBVlHOmI@FS0MJ}-por8PGvw<{p!(7zb`30=R8>j(H<5|bfumbv^-Aff=Z^T!h*?$59=hLCyF) zs??WI1G|X{_yE;U6zieNc0?Xu&r)b;)8(K>I@4V+3ss2<)J(RZ9Gq7SOyEYv`zqXt@v8pvWy((_+QL!~&3D(z*A#3!g5hx2nb025J5F&R~{ zLe$@9qXx1TbzKeW>G%#cfm`@8K0;oW!9^pn5XW(U+ebrxcz_czK80rr$uIt2x@6I#&413qDzX+pmz? z+B;iFI$1*OUe zf#}EzzWZ;pL7Q_P+2(%~+)UGH*OGoDiL4?sh}K!h9P$PkPx_M(qT_v1Lo(ItIvQ`2 zH_2S`?D&|*Tcncc$7m1PO0;=OiH_YQlDtMz$wKn%C~%EQc!Wee`vdad9ac^@B=Ghb z(Gf;A23!1}k8@ykdQ5k3xjQ?E1ISX+m-HYlNh0}x=omuQkk84hykK9=XP9%BmTnr=28vc$M(xPE$pdirDt5;*pe`H}i AkN^Mx diff --git a/locale/fr/LC_MESSAGES/application.po b/locale/fr/LC_MESSAGES/application.po index 9e73930..1386d1f 100644 --- a/locale/fr/LC_MESSAGES/application.po +++ b/locale/fr/LC_MESSAGES/application.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-09 17:39+0200\n" +"POT-Creation-Date: 2025-07-10 12:08+0200\n" "PO-Revision-Date: 2025-07-04 13:36+0000\n" "Last-Translator: 24ème \n" "Language-Team: French \n" "Language-Team: Galician \n" "Language-Team: Italian \n" "Language-Team: Kabyle \n" "Language-Team: Occitan \n" "Language-Team: Polish \n" "Language-Team: Romanian \n" "Language-Team: Tamil \n" "Language-Team: Turkish ")) { try { - const response = await fetch('/signature/'+pdfHash+'/delete/'+adminKey); + const response = await fetch('/signature/'+pdfHash+'/delete/'+adminKey); if (!response.ok) { throw new Error(`Response status: ${response.status}`); } localStorage.removeItem(pdfHash+'.adminKey') - window.location.replace('/signature') + window.location.replace('/signature') } catch (error) { console.error(error.message); }