Changeset 3847 for trunk/wp-admin/list-manipulation-js.php
- Timestamp:
- 06/06/2006 04:14:04 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/list-manipulation-js.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/list-manipulation-js.php
r3733 r3847 4 4 ?> 5 5 addLoadEvent(function(){theList=new listMan();}); 6 function deleteSomething(what,id,message ){if(!message)message="<?php printf(__('Are you sure you want to delete this %s?'),"'+what+'"); ?>";if(confirm(message))return theList.ajaxDelete(what,id);else return false;}7 function dimSomething(what,id,dimClass ){return theList.ajaxDimmer(what,id,dimClass);}6 function deleteSomething(what,id,message,obj){if(!obj)obj=theList;if(!message)message="<?php printf(__('Are you sure you want to delete this %s?'),"'+what+'"); ?>";if(confirm(message))return obj.ajaxDelete(what,id);else return false;} 7 function dimSomething(what,id,dimClass,obj){if(!obj)obj=theList;return obj.ajaxDimmer(what,id,dimClass);} 8 8 9 9 function WPAjax(file, responseEl){//class WPAjax extends sack … … 75 75 if(this.ajaxDel.failed)return true; 76 76 var tempObj=this; 77 this.ajaxDel.onCompletion=function(){if(this.parseAjaxResponse()){tempObj.removeListItem(what.replace('-as-spam','')+'-'+id);this.myResponseElement.innerHTML='';if(tempObj.delComplete&&typeof tempObj.delComplete=='function')tempObj.delComplete(what, where);tempObj.recolorList(tempObj.recolorPos,1000)}};77 this.ajaxDel.onCompletion=function(){if(this.parseAjaxResponse()){tempObj.removeListItem(what.replace('-as-spam','')+'-'+id);this.myResponseElement.innerHTML='';if(tempObj.delComplete&&typeof tempObj.delComplete=='function')tempObj.delComplete(what,id);tempObj.recolorList(tempObj.recolorPos,1000)}}; 78 78 this.ajaxDel.runAJAX('action=delete-'+what+'&id='+id); 79 79 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)