DFW: fix buttons and the title width, make the fade out/in when opening and closing a bit faster. See #24067.

git-svn-id: https://develop.svn.wordpress.org/trunk@26896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-01-02 04:17:28 +00:00
parent c06d7145bc
commit 17f36f016a
3 changed files with 5 additions and 5 deletions

View File

@ -402,7 +402,7 @@
$( '#wp-fullscreen-body' ).append( $('#wp-fullscreen-status') );
if ( s.$dfwTitle ) {
$( '#wp-fullscreen-title-placeholder' ).before( s.$dfwTitle.removeClass('wp-fullscreen-title') ).remove();
$( '#wp-fullscreen-title-placeholder' ).before( s.$dfwTitle.removeClass('wp-fullscreen-title').css( 'width', '' ) ).remove();
}
s.$dfwWrap.removeClass( 'wp-fullscreen-wrap' )
@ -517,8 +517,8 @@
});
// Bind buttons
$('#wp-fullscreen-buttons').on( 'click.wp-fullscreen', function( event ) {
var command = event.target.id && event.target.id.substr(6);
$('#wp-fullscreen-buttons').on( 'click.wp-fullscreen', 'button', function( event ) {
var command = event.currentTarget.id ? event.currentTarget.id.substr(6) : null;
if ( s.editor && 'tinymce' === s.mode ) {
switch( command ) {

View File

@ -915,7 +915,7 @@ final class _WP_Editors {
</div>
<div class="fullscreen-overlay" id="fullscreen-overlay"></div>
<div class="fullscreen-overlay fullscreen-fader fade-600" id="fullscreen-fader"></div>
<div class="fullscreen-overlay fullscreen-fader fade-300" id="fullscreen-fader"></div>
<?php
}

View File

@ -17,7 +17,7 @@ div.mce-toolbar-grp {
padding: 1px 3px;
}
.mce-statusbar {
div.mce-statusbar {
border-top: 1px solid #eee;
}