equal
deleted
inserted
replaced
25 * @param {boolean} visible Should it be visible or not. |
25 * @param {boolean} visible Should it be visible or not. |
26 * |
26 * |
27 * @return {void} |
27 * @return {void} |
28 */ |
28 */ |
29 updateWelcomePanel = function( visible ) { |
29 updateWelcomePanel = function( visible ) { |
30 $.post( ajaxurl, { |
30 $.post( |
31 action: 'update-welcome-panel', |
31 ajaxurl, |
32 visible: visible, |
32 { |
33 welcomepanelnonce: $( '#welcomepanelnonce' ).val() |
33 action: 'update-welcome-panel', |
34 }); |
34 visible: visible, |
|
35 welcomepanelnonce: $( '#welcomepanelnonce' ).val() |
|
36 }, |
|
37 function() { |
|
38 wp.a11y.speak( wp.i18n.__( 'Screen Options updated.' ) ); |
|
39 } |
|
40 ); |
35 }; |
41 }; |
36 |
42 |
37 // Unhide the welcome panel if the Welcome Option checkbox is checked. |
43 // Unhide the welcome panel if the Welcome Option checkbox is checked. |
38 if ( welcomePanel.hasClass('hidden') && welcomePanelHide.prop('checked') ) { |
44 if ( welcomePanel.hasClass('hidden') && welcomePanelHide.prop('checked') ) { |
39 welcomePanel.removeClass('hidden'); |
45 welcomePanel.removeClass('hidden'); |