mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Fix messaggio firma mancante
This commit is contained in:
parent
81066260dc
commit
8adaf16745
@ -109,14 +109,15 @@ if (Auth::check()) {
|
||||
'details' => tr('Dettagli'),
|
||||
'loading' => tr('Caricamento'),
|
||||
'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'),
|
||||
'hookExecuting' => tr('Hook "_NAME_" in esecuzione'),
|
||||
'hookMultiple' => tr('Hai _NUM_ notifiche'),
|
||||
'hookSingle' => tr('Hai 1 notifica'),
|
||||
'hookNone' => tr('Nessuna notifica'),
|
||||
'singleCalendar' => tr("E' presente un solo periodo!"),
|
||||
'singleCalendar' => tr("E' presente un solo periodo."),
|
||||
'noResults' => tr('Nessun elemento trovato'),
|
||||
'signatureMissing' => tr('Firma mancante.'),
|
||||
];
|
||||
foreach ($translations as $key => $value) {
|
||||
echo '
|
||||
|
@ -120,7 +120,9 @@ if (get('anteprima') !== null) {
|
||||
|
||||
saveButton.addEventListener("click", function (event) {
|
||||
if (signaturePad.isEmpty()) {
|
||||
alert("Please provide signature first.");
|
||||
alert(globals.translations.signatureMissing);
|
||||
event.preventDefault();
|
||||
return;
|
||||
} else {
|
||||
image_data = signaturePad.toDataURL("image/jpeg", 100);
|
||||
$('#firma_base64').val(image_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user