mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
handle id==0 and cancellation of confirm dialog box
handle id==0 and cancellation of confirm dialog box
This commit is contained in:
parent
1f1acaa500
commit
382593a8a2
@ -172,7 +172,7 @@
|
||||
}
|
||||
submittedForm = true;
|
||||
|
||||
if (id) {
|
||||
if (id || id===0) {
|
||||
$('#public_id_{{ $entityType }}').val(id);
|
||||
}
|
||||
|
||||
@ -180,7 +180,9 @@
|
||||
sweetConfirm(function() {
|
||||
$('#action_{{ $entityType }}').val(action);
|
||||
$('form.listForm_{{ $entityType }}').submit();
|
||||
});
|
||||
}, null, null, function(){ // CancelCallback
|
||||
submittedForm = false;
|
||||
});
|
||||
} else {
|
||||
$('#action_{{ $entityType }}').val(action);
|
||||
$('form.listForm_{{ $entityType }}').submit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user