Version 3.4.9

This commit is contained in:
Neo committed 2025-12-19 00:44:43 -08:00
1 parent c603205a25
commit f9e857d255
920 files changed
+28189 -6840

No files matched your search

+13 -10
View File
@@ -418,9 +418,11 @@ _comments.prototype.comments = {
edit['pid'] = edit['button'].id.replace('edit_comment_', '');
edit['post'] = $( 'comment_id_' + edit['pid'] ).down('.comment_content');
edit['edit_post'] = new Element( 'div', { id: 'comment_id_edit_' + edit['pid'] } );
// Find post content
ipb.comments.commentCache[ edit['pid'] ] = edit['post'].innerHTML;
edit['post'].insert({
after: edit['edit_post']
});
url = ipb.comments.data['ajaxShowEditUrl'] ? ipb.comments.data['ajaxShowEditUrl'] : ipb.vars['base_url'] + 'app=core&module=ajax&section=comments&do=showEdit&parentId=' +ipb.comments.parentId + '&fromApp=' + ipb.comments.data['fromApp'];
@@ -457,7 +459,8 @@ _comments.prototype.comments = {
// Put it in
edit['button'].writeAttribute('_editing', '1');
edit['post'].update( t.responseText );
edit['post'].hide();
edit['edit_post'].show().update( t.responseText );
edit['pid'] = 'e' + edit['pid'];
@@ -532,7 +535,8 @@ _comments.prototype.comments = {
$('edit_comment_' + postid).writeAttribute('_editing', '0');
$( 'comment_id_' + postid ).down('.comment_content').update( t.responseJSON['successString'] );
$('comment_id_' + postid).down('.comment_content').show().update( t.responseJSON['successString'] );
$('comment_id_edit_' + postid).remove();
if ( Prototype.Browser.IE7 )
{
@@ -564,12 +568,11 @@ _comments.prototype.comments = {
var postid = elem.id.replace('edit_cancel_e', '');
if( !postid ){ return; }
if( ipb.comments.commentCache[ postid ] ){
$( 'comment_id_' + postid ).down('.comment_content').update( ipb.comments.commentCache[ postid ] );
$('edit_comment_' + postid).writeAttribute('_editing', '0');
ipb.textEditor.getEditor( 'edit-' + postid ).remove();
}
ipb.textEditor.getEditor( 'edit-' + postid ).remove();
$('comment_id_edit_' + postid).remove();
$('comment_id_' + postid).down('.comment_content').show();
$('edit_comment_' + postid).writeAttribute('_editing', '0');
return;
},