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:
Andrew Ozz
2011-11-03 17:08:12 +00:00
parent ccaca0274d
commit 882574b78c
15 changed files with 75 additions and 81 deletions
+8 -13
View File
@@ -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