This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default_admin/delete_record.js

17 lines
461 B
JavaScript
Raw Normal View History

2009-08-03 04:10:16 +00:00
// Mass Delete controller
function delete_record(id,ids,msg) {
temp = window.confirm(msg ? msg : 'Do you want to delete this record?');
if (temp == false) return;
var replace_id = id+',';
ids = ids.replace(replace_id,'');
if (ids == '') {
var url = '?_page=core:search&module='+module+'&do[]='+module+':delete&id='+id+COOKIE_URL;
} else {
var url = '?_page='+ module +':view&do[]='+module+':delete&id='+ids+COOKIE_URL;
}
window.location = url;
}