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:
parent
ab43381c33
commit
e18aac6f90
|
@ -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.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -96,7 +96,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", array('utils','jquery'), '20110411' );
|
||||
$scripts->add_data( 'editor', 'group', 1 );
|
||||
|
||||
$scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110528' );
|
||||
$scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110530' );
|
||||
$scripts->add_data( 'wp-fullscreen', 'group', 1 );
|
||||
|
||||
$scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1');
|
||||
|
|
Loading…
Reference in New Issue