equal
deleted
inserted
replaced
459 } |
459 } |
460 |
460 |
461 closed = $( '.postbox' ).filter( '.closed' ).map( function() { return this.id; } ).get().join( ',' ); |
461 closed = $( '.postbox' ).filter( '.closed' ).map( function() { return this.id; } ).get().join( ',' ); |
462 hidden = $( '.postbox' ).filter( ':hidden' ).map( function() { return this.id; } ).get().join( ',' ); |
462 hidden = $( '.postbox' ).filter( ':hidden' ).map( function() { return this.id; } ).get().join( ',' ); |
463 |
463 |
464 $.post(ajaxurl, { |
464 $.post( |
465 action: 'closed-postboxes', |
465 ajaxurl, |
466 closed: closed, |
466 { |
467 hidden: hidden, |
467 action: 'closed-postboxes', |
468 closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(), |
468 closed: closed, |
469 page: page |
469 hidden: hidden, |
470 }); |
470 closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(), |
|
471 page: page |
|
472 }, |
|
473 function() { |
|
474 wp.a11y.speak( __( 'Screen Options updated.' ) ); |
|
475 } |
|
476 ); |
471 }, |
477 }, |
472 |
478 |
473 /** |
479 /** |
474 * Saves the order of the postboxes to the server. |
480 * Saves the order of the postboxes to the server. |
475 * |
481 * |