Ticket #7455: delete-confirm.patch
| File delete-confirm.patch, 3.3 KB (added by , 18 years ago) |
|---|
-
wp-admin/edit-link-categories.php
96 96 ?> 97 97 98 98 <div class="alignleft"> 99 <select name="action" >99 <select name="action" id="select-action"> 100 100 <option value="" selected><?php _e('Actions'); ?></option> 101 101 <option value="delete"><?php _e('Delete'); ?></option> 102 102 </select> -
wp-admin/edit-comments.php
173 173 ?> 174 174 175 175 <div class="alignleft"> 176 <select name="action" >176 <select name="action" id="select-action"> 177 177 <option value="" selected><?php _e('Actions') ?></option> 178 178 <?php if ( 'approved' == $comment_status ): ?> 179 179 <option value="unapprove"><?php _e('Unapprove'); ?></option> -
wp-admin/edit-tags.php
164 164 ?> 165 165 166 166 <div class="alignleft"> 167 <select name="action" >167 <select name="action" id="select-action"> 168 168 <option value="" selected><?php _e('Actions'); ?></option> 169 169 <option value="delete"><?php _e('Delete'); ?></option> 170 170 </select> -
wp-admin/js/forms.js
23 23 $( 'thead :checkbox' ).click( function() { 24 24 checkAll( $(this).parents( 'form:first' ) ); 25 25 } ); 26 } ); 27 No newline at end of file 26 } ); 27 28 jQuery(document).ready( function() { 29 jQuery('.button-secondary.action').click( function(e) { 30 var selected = jQuery('#select-action option:selected'); 31 if( selected.val() == 'delete') { 32 return confirm( formL10n.confirmDelete ); 33 } else { 34 if( selected.val() == 'edit' ) return true; 35 return false; 36 } 37 }); 38 }); 39 No newline at end of file -
wp-admin/edit.php
166 166 ?> 167 167 168 168 <div class="alignleft"> 169 <select name="action" >169 <select name="action" id="select-action"> 170 170 <option value="" selected><?php _e('Actions'); ?></option> 171 171 <option value="delete"><?php _e('Delete'); ?></option> 172 172 <option value="edit"><?php _e('Edit'); ?></option> -
wp-admin/edit-pages.php
149 149 ?> 150 150 151 151 <div class="alignleft"> 152 <select name="action" >152 <select name="action" id="select-action"> 153 153 <option value="" selected><?php _e('Actions'); ?></option> 154 154 <option value="delete"><?php _e('Delete'); ?></option> 155 155 </select> -
wp-admin/categories.php
157 157 ?> 158 158 159 159 <div class="alignleft"> 160 <select name="action" >160 <select name="action" id="select-action"> 161 161 <option value="" selected><?php _e('Actions'); ?></option> 162 162 <option value="delete"><?php _e('Delete'); ?></option> 163 163 </select>