// 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; }