WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/30/2008 11:33:02 PM (12 years ago)
Author:
mdawaffe
Message:

First pass at draggable meta boxes. Meta boxes must now be defined before the first call to do_meta_boxes(). Meta boxes can be dragged from any set of meta boxes to any set of meta boxes on the same page, including the sidebar. Some funkiness with Opera. Untested in IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/admin-ajax.php

    r8011 r8219  
    594594    die(get_sample_permalink_html($post_id, $title, $slug));
    595595break;
     596case 'meta-box-order':
     597    check_ajax_referer( 'meta-box-order' );
     598    update_user_option( $GLOBALS['current_user']->ID, "meta-box-order_$_POST[page]", $_POST['order'] );
     599    die('1');
     600    break;
    596601default :
    597602    do_action( 'wp_ajax_' . $_POST['action'] );
Note: See TracChangeset for help on using the changeset viewer.