Add confirmMessage option

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

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

Loading…
Cancel
Save