Changeset 4535 for trunk/wp-includes/js/list-manipulation-js.php
- Timestamp:
- 11/28/2006 09:51:13 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/js/list-manipulation-js.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/list-manipulation-js.php
r4458 r4535 1 1 <?php @require_once('../../wp-config.php'); cache_javascript_headers(); ?> 2 2 addLoadEvent(function(){theList=new listMan();}); 3 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;}3 function deleteSomething(what,id,message,obj){if(!obj)obj=theList;if(!message)message="<?php printf(js_escape(__('Are you sure you want to delete this %s?')),"'+what+'"); ?>";if(confirm(message))return obj.ajaxDelete(what,id);else return false;} 4 4 function dimSomething(what,id,dimClass,obj){if(!obj)obj=theList;return obj.ajaxDimmer(what,id,dimClass);} 5 5 … … 48 48 tempObj.showLink = id; 49 49 }); 50 ajaxAdd.myResponseElement.update(tempObj.showLink ? ( "<div id='jumplink' class='updated fade'><p><a href='#" + what + '-' + tempObj.showLink + "'><?php _e('Jump to new item'); ?></a></p></div>" ) : '');50 ajaxAdd.myResponseElement.update(tempObj.showLink ? ( "<div id='jumplink' class='updated fade'><p><a href='#" + what + '-' + tempObj.showLink + "'><?php js_escape(__('Jump to new item')); ?></a></p></div>" ) : ''); 51 51 } 52 52 if ( tempObj.addComplete && typeof tempObj.addComplete == 'function' )
Note: See TracChangeset
for help on using the changeset viewer.