mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Always load the Dashboard RSS widgets with AJAX, see #10133 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4,15 +4,15 @@ var postboxes;
|
||||
add_postbox_toggles : function(page,args) {
|
||||
this.init(page,args);
|
||||
$('.postbox h3, .postbox .handlediv').click( function() {
|
||||
var p = $(this).parent('.postbox');
|
||||
/*
|
||||
if ( p.hasClass('noclick') ) {
|
||||
p.removeClass('noclick');
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
var p = $(this).parent('.postbox'), id = p.attr('id');
|
||||
p.toggleClass('closed');
|
||||
postboxes.save_state(page);
|
||||
if ( id ) {
|
||||
if ( !p.hasClass('closed') && $.isFunction(postboxes.pbshow) )
|
||||
postboxes.pbshow(id);
|
||||
else if ( p.hasClass('closed') && $.isFunction(postboxes.pbhide) )
|
||||
postboxes.pbhide(id);
|
||||
}
|
||||
} );
|
||||
$('.postbox h3 a').click( function(e) {
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user