Make WordPress Core

Ticket #15911: 15911.3.patch

File 15911.3.patch, 1.1 KB (added by SergeyBiryukov, 14 years ago)
  • wp-admin/js/edit-comments.dev.js

     
    353353        close : function() {
    354354                var c;
    355355
     356                QTags.getInstance('replycontent').clearButtonStates();
     357
    356358                if ( this.cid ) {
    357359                        c = $('#comment-' + this.cid);
    358360
  • wp-includes/js/quicktags.dev.js

     
    504504                }
    505505        };
    506506
    507         qt.prototype.closeAllTags = function() {
    508                 var btn = this.getButton('close');
    509                 btn.callback.call(btn, '', this.canvas, this.toolbar);
     507        qt.prototype.clearButtonStates = function() {
     508                var button, element, tbo = this.openTags;
     509                if ( tbo ) {
     510                        while ( tbo.length > 0 ) {
     511                                button = this.getButton(tbo[tbo.length - 1]);
     512                                element = document.getElementById(this.name + '_' + button.id);
     513                                button.closeTag(element, this);
     514                        }
     515                }
    510516        };
    511517
    512518        // the link button