Could you make the "Delete All" button visible on both the Browse and Edit Form? This allows you to delete all debug entries right from the Browse form without the need to open a record first. I made this small change to the zzzzsys_debug javascript:
Code: Select all
if(nuFORM.getCurrent().record_id != ''){
$('.nuActionButton').remove();
nuAddActionButton('Delete');
// old position: nuAddActionButton('DeleteAll','Delete All', 'nuDeleteAllAction()');
}
// new position:
nuAddActionButton('DeleteAll','Delete All', 'nuDeleteAllAction()');
Code: Select all
if (action == "delete" && instruction == "all" && fm.record_id == "")
{
// refresh the browse form
nuGetBreadcrumb();
} else