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