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:
parent
81066260dc
commit
8adaf16745
@ -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 '
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user