Changeset 8220 for branches/crazyhorse/wp-admin/js/post.js
- Timestamp:
- 07/01/2008 01:52:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-admin/js/post.js
r8219 r8220 71 71 // postboxes 72 72 add_postbox_toggles('post'); 73 74 var postingMetaBox = false; // post once, not once per sortable75 jQuery('.meta-box-sortables').sortable( {76 connectWith: [ '.meta-box-sortables' ],77 handle: 'h3',78 update: function() {79 if ( postingMetaBox ) {80 return;81 }82 postingMetaBox = true;83 var postVars = {84 action: 'meta-box-order',85 _ajax_nonce: jQuery('#meta-box-order-nonce').val(),86 page: 'post'87 }88 jQuery('.meta-box-sortables').each( function() {89 postVars["order[" + this.id.split('-')[0] + "]"] = jQuery(this).sortable( 'toArray' ).join(',');90 } );91 jQuery.post( postboxL10n.requestFile, postVars, function() {92 postingMetaBox = false;93 } );94 }95 } );96 73 97 74 // Editable slugs
Note: See TracChangeset
for help on using the changeset viewer.