1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-03 01:08:08 +01:00

Fix messaggio firma mancante

This commit is contained in:
Luca 2022-02-05 22:37:45 +01:00
parent 81066260dc
commit 8adaf16745
2 changed files with 6 additions and 3 deletions

View File

@ -109,14 +109,15 @@ if (Auth::check()) {
'details' => tr('Dettagli'), 'details' => tr('Dettagli'),
'loading' => tr('Caricamento'), 'loading' => tr('Caricamento'),
'waiting' => tr('Impossibile procedere'), 'waiting' => tr('Impossibile procedere'),
'waitingMessage' => tr('Prima di proseguire devi selezionare alcuni elementi!'), 'waitingMessage' => tr('Prima di proseguire devi selezionare alcuni elementi.'),
'hooksExecuting' => tr('Hooks in esecuzione'), 'hooksExecuting' => tr('Hooks in esecuzione'),
'hookExecuting' => tr('Hook "_NAME_" in esecuzione'), 'hookExecuting' => tr('Hook "_NAME_" in esecuzione'),
'hookMultiple' => tr('Hai _NUM_ notifiche'), 'hookMultiple' => tr('Hai _NUM_ notifiche'),
'hookSingle' => tr('Hai 1 notifica'), 'hookSingle' => tr('Hai 1 notifica'),
'hookNone' => tr('Nessuna notifica'), 'hookNone' => tr('Nessuna notifica'),
'singleCalendar' => tr("E' presente un solo periodo!"), 'singleCalendar' => tr("E' presente un solo periodo."),
'noResults' => tr('Nessun elemento trovato'), 'noResults' => tr('Nessun elemento trovato'),
'signatureMissing' => tr('Firma mancante.'),
]; ];
foreach ($translations as $key => $value) { foreach ($translations as $key => $value) {
echo ' echo '

View File

@ -120,7 +120,9 @@ if (get('anteprima') !== null) {
saveButton.addEventListener("click", function (event) { saveButton.addEventListener("click", function (event) {
if (signaturePad.isEmpty()) { if (signaturePad.isEmpty()) {
alert("Please provide signature first."); alert(globals.translations.signatureMissing);
event.preventDefault();
return;
} else { } else {
image_data = signaturePad.toDataURL("image/jpeg", 100); image_data = signaturePad.toDataURL("image/jpeg", 100);
$('#firma_base64').val(image_data); $('#firma_base64').val(image_data);