WordPress.org

Make WordPress Core

Changeset 22652


Ignore:
Timestamp:
11/19/2012 01:23:45 AM (7 years ago)
Author:
koopersmith
Message:

Media: Make TinyMCE attachment and gallery controls always show when the corresponding view is selected. props SergeyBiryukov. fixes #22463, see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js

    r22600 r22652  
    77
    88    tinymce.create('tinymce.plugins.WordPress', {
    9         mceTout : 0,
     9        showButtons : 0,
    1010
    1111        init : function(ed, url) {
     
    376376            });
    377377
    378             if ( this.mceTout )
    379                 clearTimeout(this.mceTout);
    380 
    381             this.mceTout = setTimeout( function(){ed.plugins.wordpress._hideButtons();}, 5000 );
     378            this.showButtons = true;
    382379        },
    383380
    384381        _hideButtons : function() {
    385             if ( !this.mceTout )
     382            if ( ! this.showButtons )
    386383                return;
    387384
     
    392389                tinymce.DOM.hide('wp_gallerybtns');
    393390
    394             clearTimeout(this.mceTout);
    395             this.mceTout = 0;
     391            this.showButtons = false;
    396392        },
    397393
Note: See TracChangeset for help on using the changeset viewer.