inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Aug 6, 2011 2:13:58 GMT -8
Confirm 'Delete Users' on Member List or Search by SubDevoTested in IE, FF, Opera, Safari and Chrome. PREVIEWThis is for you admins and staff with the power to delete users... This code will popup a confirmation when you hit the "Delete Users" button on the Members List or Search Members results pages. It will show a list of the display and user names of the members you checked. Click OK to delete. Click Cancel to not delete. By PB default, you have no chance to change your mind after you click that "Delete Users" button. They are just gone! This code gives you another chance to view the members that will be deleted and to change your mind. Enjoy!!! SubDevo Nothing to edit... Location: Main Footer<script type="text/javascript"> /* Confirm 'Delete Users' on Member List or Search by SubDevo */ /* Main Footer - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
function g_inputs(a){ var m=" ",n=mS_form.parentNode.getElementsByTagName("input"),x=-1; while(n[++x]){ if(a){ if(/delete-(\w+)$/.test(n[x].name)&&n[x].checked!=false){ m+=n[x].parentNode.lastChild.innerHTML+" ("+RegExp.$1+")\n "; }}else if(n[x].value=="Delete Users"){m=n[x]; break;} } return m; } var mS_form=document.membersForm; if(mS_form&& !/=letter$/i.test(location.href)){ g_inputs().onclick=function(){ return(confirm("Delete the following user(s)?\n\n"+g_inputs(1))?true:false); }} </script>
|
|