mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user