Ticket #15911: 15911.4.patch
File 15911.4.patch, 1.3 KB (added by , 14 years ago) |
---|
-
wp-admin/js/edit-comments.dev.js
353 353 close : function() { 354 354 var c; 355 355 356 QTags.getInstance('replycontent').clearButtonStates(); 357 356 358 if ( this.cid ) { 357 359 c = $('#comment-' + this.cid); 358 360 -
wp-includes/js/quicktags.dev.js
209 209 210 210 tb.innerHTML = html; 211 211 t.toolbar = tb; 212 t.canvas = canvas; 212 213 213 214 // listen for click events 214 215 onclick = function(e) { … … 506 507 507 508 qt.prototype.closeAllTags = function() { 508 509 var btn = this.getButton('close'); 509 btn.callback.call(btn, '', this.canvas, this.toolbar); 510 btn.callback.call(btn, '', this.canvas, this); 511 }; 512 513 qt.prototype.clearButtonStates = function() { 514 var button, element, tbo = this.openTags; 515 if ( tbo ) { 516 while ( tbo.length > 0 ) { 517 button = this.getButton(tbo[tbo.length - 1]); 518 element = document.getElementById(this.name + '_' + button.id); 519 button.closeTag(element, this); 520 } 521 } 510 522 }; 511 523 512 524 // the link button