Add confirmMessage option

pull/279/head
Halil İbrahim Kalkan 7 years ago
parent 8014bb0a85
commit 50e00ed827

@ -24,9 +24,16 @@
e.preventDefault(); e.preventDefault();
if (!$(this).closest('li').hasClass('disabled')) { if (!$(this).closest('li').hasClass('disabled')) {
fieldItem.action({ if (fieldItem.confirmMessage) {
record: record abp.message.confirm(fieldItem.confirmMessage({ record: record }))
.done(function(accepted) {
if (accepted) {
fieldItem.action({ record: record });
}
}); });
} else {
fieldItem.action({ record: record });
}
} }
}); });
} }

Loading…
Cancel
Save