Changeset 8981
- Timestamp:
- 09/25/2008 09:12:33 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
wp-admin/edit-post-rows.php (modified) (1 diff)
-
wp-admin/edit.php (modified) (3 diffs)
-
wp-admin/js/inline-edit.js (modified) (1 diff)
-
wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-post-rows.php
r8973 r8981 29 29 ?> 30 30 </tbody> 31 <thead> 32 <tr> 33 <?php print_column_headers('post'); ?> 34 </tr> 35 </thead> 31 36 </table> -
trunk/wp-admin/edit.php
r8973 r8981 10 10 require_once('admin.php'); 11 11 12 $action = -1; 13 if ( isset($_GET['action2']) && $_GET['action2'] != -1 ) 14 $action = $_GET['action2']; 15 if ( isset($_GET['action']) && $_GET['action'] != -1 ) 16 $action = $_GET['action']; 17 12 18 // Handle bulk actions 13 if ( isset($_GET['action']) && $_GET['action']!= -1 ) {14 switch ( $ _GET['action']) {19 if ( $action != -1 ) { 20 switch ( $action ) { 15 21 case 'delete': 16 if ( isset($_GET['post']) && isset($_GET['doaction']) ) {22 if ( isset($_GET['post']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) { 17 23 check_admin_referer('bulk-posts'); 18 24 foreach( (array) $_GET['post'] as $post_id_del ) { … … 266 272 <?php include( 'edit-post-rows.php' ); ?> 267 273 268 </form>269 270 <?php inline_edit_row( 'post' ); ?>271 272 <div id="ajax-response"></div>273 274 274 <div class="tablenav"> 275 275 … … 279 279 ?> 280 280 281 <br class="clear" /> 282 </div> 281 <div class="alignleft"> 282 <select name="action2"> 283 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> 284 <option value="edit"><?php _e('Edit'); ?></option> 285 <option value="delete"><?php _e('Delete'); ?></option> 286 </select> 287 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 288 <br class="clear" /> 289 </div> 290 <br class="clear" /> 291 </div> 292 293 </form> 294 295 <?php inline_edit_row( 'post' ); ?> 296 297 <div id="ajax-response"></div> 283 298 284 299 <br class="clear" /> -
trunk/wp-admin/js/inline-edit.js
r8973 r8981 51 51 $('#doaction').click(function(e){ 52 52 if ( $('select[name="action"]').val() == 'edit' ) { 53 e.preventDefault(); 54 t.setBulk(); 55 } else if ( $('form#posts-filter tr.inline-editor').length > 0 ) { 56 t.revert(); 57 } 58 }); 59 60 $('#doaction2').click(function(e){ 61 if ( $('select[name="action2"]').val() == 'edit' ) { 53 62 e.preventDefault(); 54 63 t.setBulk(); -
trunk/wp-includes/script-loader.php
r8976 r8981 245 245 $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' ); 246 246 247 $scripts->add( 'inline-edit', '/wp-admin/js/inline-edit.js', array( 'jquery', 'jquery-form', 'suggest' ), '2008092 5' );247 $scripts->add( 'inline-edit', '/wp-admin/js/inline-edit.js', array( 'jquery', 'jquery-form', 'suggest' ), '20080926' ); 248 248 $scripts->localize( 'inline-edit', 'inlineEditL10n', array( 249 249 'edit' => __('Double-click to edit')
Note: See TracChangeset
for help on using the changeset viewer.