There's an event nuBeforeSave() that allows you to cancel a save action.
What about a nuBeforeDelete() event? This would be useful if you want to allow/disallow the deletion of certain records.
E.g. to allow a user to delete only his own records or some records that meet certain criterias etc.
Code: Select all
function nuBeforeDelete() {
if (nuUserName() != $('#cus_name').val()) {
nuMessage(['You can only delete your own records']);
return false;
}
return true;
}