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
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue