Force-hide the adminbar when DFW opens to keep IE7 users happy, fixes #17622
git-svn-id: http://svn.automattic.com/wordpress/trunk@18075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -288,6 +288,9 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||
|
||||
// scroll to top so the user is not disoriented
|
||||
scrollTo(0, 0);
|
||||
|
||||
// needed it for IE7 and compat mode
|
||||
$('#wpadminbar').hide();
|
||||
});
|
||||
|
||||
ps.subscribe( 'shown', function() { // This event occurs after the DFW overlay is shown
|
||||
@@ -339,6 +342,7 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||
|
||||
$( document.body ).removeClass( 'fullscreen-active' );
|
||||
scrollTo(0, s.orig_y);
|
||||
$('#wpadminbar').show();
|
||||
});
|
||||
|
||||
ps.subscribe( 'hidden', function() { // This event occurs after DFW is removed.
|
||||
|
||||
Reference in New Issue
Block a user