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:
azaozz
2011-05-30 19:22:09 +00:00
parent ab43381c33
commit e18aac6f90
3 changed files with 6 additions and 2 deletions

View File

@@ -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.