Also apply iframe solution to dispCommentDeclare etc.

This commit is contained in:
Kijin Sung 2025-05-14 02:43:04 +09:00
parent bd3e642d37
commit 1d558204d1
3 changed files with 22 additions and 12 deletions

View file

@ -12,8 +12,9 @@
<input type="hidden" name="xe_validator_id" value="modules/comment/tpl/1" />
<div class="x_modal-header">
<h1>{$lang->improper_comment_declare} <!--@if($type == 'cancel')-->{$lang->cmd_cancel}<!--@end--></h1>
<a class="close_window" href="javascript:window.close()">&times;</a>
</div>
<div class="x_modal-body x_form-horizontal" style="max-height:none">
<div class="x_modal-body">
<blockquote>
<section class="target_article">
<h1>{$lang->replies}</h1>
@ -32,11 +33,11 @@
</div>
</div>
<!--@end-->
<div class="x_modal-footer">
<span class="x_btn-group x_pull-right">
<button type="submit" class="x_btn x_btn-primary"><!--@if($type == 'cancel')-->{$lang->cmd_cancel_declare}<!--@else-->{$lang->cmd_submit}<!--@end--></button>
</span>
</div>
</div>
<div class="x_modal-footer">
<span class="x_btn-group x_pull-right">
<button type="submit" class="x_btn x_btn-primary"><!--@if($type == 'cancel')-->{$lang->cmd_cancel_declare}<!--@else-->{$lang->cmd_submit}<!--@end--></button>
</span>
</div>
</form>
<script cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/1'">

View file

@ -9,6 +9,7 @@
<div class="x_modal-header">
<h1>{$lang->cmd_spammer}</h1>
<a class="close_window" href="javascript:window.close()">&times;</a>
</div>
<form action="./" method="post" id="fo_management" onsubmit="return doSpammerManage();">
@ -79,14 +80,14 @@ function progressSpammerManage( data ) {
setTimeout( function() {
var info = data.progress + '%';
jQuery('#progressBar').width(data.progress + '%');
if( data.total_count != undefined && parseInt( data.total_count ) > 0 ) {
var doc_count = parseInt( data.total_count ) - parseInt( data.remain_count );
info = info + ' (' + doc_count + ' / ' + data.total_count + ')';
}
jQuery('#progress-info').text( info );
if(data.remain_count <= 0 || bSpammerManageProc === false) {
jQuery('.stop').hide();
if(data.remain_count <= 0) {
@ -96,7 +97,7 @@ function progressSpammerManage( data ) {
}
return;
}
doSpammerManage( data );
}, 500 );
}