Confirmation dialogs should be displayed when deleting any record
- It's currently possible to delete a record for Groups without being prompted or requiring confirmation.
- All delete buttons should use javascript confirmation dialogs before actually deleting the record.
e.g.
<script type="text/javacsript">
function confirmDelete(msg, link) {
yes = confirm(msg);
if (yes) {
location.href = link;
} else {
return false;
}
}
</script>
<a href="#" onclick="return confirmDelete('Are you sure you want to delete', 'addonmodules.php?module=awit_smradius&action=mg-users&do[]=delete&id[]=14')"> delete </a>