mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Revert placement of Help and Screen Options to under the admin bar on the right, see #18197, see #18785
git-svn-id: https://develop.svn.wordpress.org/trunk@19130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -95,29 +95,24 @@ screenMeta = {
|
||||
page: null, // #wpcontent
|
||||
padding: null, // the closed page padding-top property
|
||||
top: null, // the closed element top property
|
||||
map: {
|
||||
'wp-admin-bar-screen-options': 'screen-options-wrap',
|
||||
'wp-admin-bar-help': 'contextual-help-wrap'
|
||||
},
|
||||
|
||||
init: function() {
|
||||
screenMeta.element = $('#screen-meta');
|
||||
screenMeta.toggles = $('.screen-meta-toggle');
|
||||
screenMeta.page = $('#wpcontent');
|
||||
this.element = $('#screen-meta');
|
||||
this.toggles = $('.screen-meta-toggle a');
|
||||
this.page = $('#wpcontent');
|
||||
|
||||
screenMeta.toggles.click( screenMeta.toggleEvent );
|
||||
this.toggles.click( this.toggleEvent );
|
||||
|
||||
$('.screen-meta-toggle').css('top', ($('h2').offset().top - 12) + 'px' ).fadeIn();
|
||||
},
|
||||
|
||||
toggleEvent: function( e ) {
|
||||
var panel;
|
||||
var panel = $( this.href.replace(/.+#/, '#') );
|
||||
e.preventDefault();
|
||||
|
||||
// Check to see if we found a panel.
|
||||
if ( ! screenMeta.map[ this.id ] )
|
||||
if ( !panel.length )
|
||||
return;
|
||||
|
||||
panel = $('#' + screenMeta.map[ this.id ]);
|
||||
|
||||
if ( panel.is(':visible') )
|
||||
screenMeta.close( panel, $(this) );
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user