Version 3.4.5

This commit is contained in:
Neo committed 2025-12-19 00:38:12 -08:00
1 parent fb6b5baabc
commit e4478369d8
1360 files changed
+228921 -179445

No files matched your search

+32 -8
View File
@@ -91,7 +91,16 @@ _comments.prototype.comments = {
if( count.size() ){
if( !$('comment_moderate_box') ){
$$('body')[0].insert({'bottom': ipb.templates['comment_moderation'].evaluate({count: count.size()}) });
$('submitModAction').on('click', ipb.comments.doModerate);
$('submitModAction').on('click', function( e ) {
if( $('commentModAction').value == 'delete' )
{
this.confirmAction( "ipb.comments.doModerate();" );
}
else
{
ipb.comments.doModerate( e );
}
} );
} else {
$('comment_count').update( count.size() );
}
@@ -128,9 +137,14 @@ _comments.prototype.comments = {
doModerate: function(e)
{
if ( ! Object.isUndefined( ipb.global.popups['conact'] ) )
{
ipb.global.popups['conact'].hide();
}
var doMod = $('commentModAction').value;
var url = ipb.comments.data['ajaxModerateUrl'] ? ipb.comments.data['ajaxModerateUrl'] : ipb.vars['base_url'] + 'app=core&module=ajax&section=comments&do=moderate&parentId=' + ipb.comments.parentId + '&fromApp=' + ipb.comments.data['fromApp'];
// Get checked comment IDs
var ids = $$('.ipsComment_mod:checked').collect( function(item){
return item.up('.ipsComment').readAttribute('data-commentid');
@@ -474,6 +488,11 @@ _comments.prototype.comments = {
var Post = ipb.textEditor.getEditor('edit-' + postid).getText();
if ( Post === false )
{
return false;
}
if( Post.blank() )
{
alert( ipb.lang['post_empty'] );
@@ -565,6 +584,11 @@ _comments.prototype.comments = {
var content = ipb.textEditor.getEditor().getText();
var isRte = ipb.textEditor.getEditor().isRte();
if ( content === false )
{
return false;
}
if( content.blank() )
{
alert( ipb.lang['post_empty'] );
@@ -711,7 +735,7 @@ _comments.prototype.comments = {
return;
}
ipb.textEditor.getEditor('commentFastReply').insert( t.responseText );
ipb.textEditor.getEditor('commentFastReply').insert( ipb.textEditor.convertQuotes( t.responseText ) );
}
}
);
@@ -908,13 +932,13 @@ _comments.prototype.comments = {
*/
setCommentHidden: function(id)
{
if( $( 'comment_id_' + id ).select('.post_wrap')[0] )
if( $( 'comment_id_' + id ).select('.comment_content')[0] )
{
$( 'comment_id_' + id ).select('.post_wrap')[0].hide();
$( 'comment_id_' + id ).select('.comment_content')[0].hide();
if( $('unhide_post_' + id ) )
{
$('unhide_post_' + id).observe('click', ipb.comments.showHiddenComment );
$('unhide_post_' + id).observe('click', ipb.comments.showHiddenComment ).show();
}
}
},
@@ -929,9 +953,9 @@ _comments.prototype.comments = {
link = Event.findElement(e, 'a');
id = link.id.replace('unhide_post_', '');
if( $('comment_id_' + id ).select('.post_wrap')[0] )
if( $('comment_id_' + id ).select('.comment_content')[1] )
{
elem = $('comment_id_' + id ).select('.post_wrap')[0];
elem = $('comment_id_' + id ).select('.comment_content')[1];
new Effect.Parallel( [
new Effect.BlindDown( elem ),
new Effect.Appear( elem )