Fix QTags.closeAllTags(), replace 'tb' with 'ed' in quicktags,js to make it clear it is the editor instance not the toolbar, small comments quick edit fixes, see #16695, fixes #15911

git-svn-id: https://develop.svn.wordpress.org/trunk@18576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-08-20 19:55:51 +00:00
parent 4bff812918
commit 3f921df606
7 changed files with 95 additions and 102 deletions
+8 -13
View File
@@ -356,6 +356,9 @@ commentReply = {
if ( this.cid ) {
c = $('#comment-' + this.cid);
if ( typeof QTags != 'undefined' )
QTags.closeAllTags('replycontent');
if ( this.act == 'edit-comment' )
c.fadeIn(300, function(){ c.show() }).css('backgroundColor', '');
@@ -365,18 +368,14 @@ commentReply = {
$('input', '#edithead').val('');
$('.error', '#replysubmit').html('').hide();
$('.waiting', '#replysubmit').hide();
if ( $.browser.msie )
$('#replycontainer, #replycontent').css('height', '120px');
else
$('#replycontainer').resizable('destroy').css('height', '120px');
$('#replycontainer, #replycontent').height(120);
this.cid = '';
}
},
open : function(id, p, a) {
var t = this, editRow, rowData, act, h, c = $('#comment-' + id), replyButton;
var t = this, editRow, rowData, act, c = $('#comment-' + id), h = c.height(), replyButton;
t.close();
t.cid = id;
@@ -389,6 +388,9 @@ commentReply = {
$('#comment_post_ID', editRow).val(p);
$('#comment_ID', editRow).val(id);
if ( h > 220 )
$('#replycontainer, #replycontent', editRow).height(h-104);
if ( a == 'edit' ) {
$('#author', editRow).val( $('div.author', rowData).text() );
$('#author-email', editRow).val( $('div.author-email', rowData).text() );
@@ -398,13 +400,6 @@ commentReply = {
$('#edithead, #savebtn', editRow).show();
$('#replyhead, #replybtn', editRow).hide();
h = c.height();
if ( h > 220 )
if ( $.browser.msie )
$('#replycontainer, #replycontent', editRow).height(h-105);
else
$('#replycontainer', editRow).height(h-105);
c.after( editRow ).fadeOut('fast', function(){
$('#replyrow').fadeIn(300, function(){ $(this).show() });
});