save_state : function(page) {
var closed = $('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','),
hidden = $('.postbox').filter(':hidden').map(function() { return this.id; }).get().join(',');
- $.post(postboxL10n.requestFile, {
+ $.post(ajaxurl, {
action: 'closed-postboxes',
closed: closed,
hidden: hidden,
$('.meta-box-sortables').each( function() {
postVars["order[" + this.id.split('-')[0] + "]"] = $(this).sortable( 'toArray' ).join(',');
} );
- $.post( postboxL10n.requestFile, postVars );
+ $.post( ajaxurl, postVars );
},
/* Callbacks */