mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Welcome panel contents and functionality. see #11651.
git-svn-id: https://develop.svn.wordpress.org/trunk@19007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad;
|
||||
|
||||
jQuery(document).ready( function($) {
|
||||
/* Dashboard Welcome Panel */
|
||||
var welcomePanel = $('#welcome-panel'),
|
||||
updateWelcomePanel = function( visible ) {
|
||||
$.post( ajaxurl, {
|
||||
action: 'update-welcome-panel',
|
||||
visible: visible,
|
||||
welcomepanelnonce: $('#welcomepanelnonce').val()
|
||||
});
|
||||
};
|
||||
|
||||
$('.welcome-panel-close', welcomePanel).click( function() {
|
||||
welcomePanel.addClass('hidden');
|
||||
updateWelcomePanel( 0 );
|
||||
});
|
||||
|
||||
$('.welcome-panel-open', '#adv-settings').click( function() {
|
||||
welcomePanel.removeClass('hidden');
|
||||
updateWelcomePanel( 1 );
|
||||
});
|
||||
|
||||
// These widgets are sometimes populated via ajax
|
||||
ajaxWidgets = [
|
||||
'dashboard_incoming_links',
|
||||
|
||||
Reference in New Issue
Block a user