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

@ -18,10 +18,18 @@
};
</script>
<style>
.x.popup { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
.x.popup > form { width: 100vw; height: 100vh; display: flex; flex-direction: column; margin: 0; }
.x.popup {
width: 100vw; height: 100vh;
display: flex; flex-direction: column;
}
.x.popup > form {
width: 100vw; height: 100vh;
display: flex; flex-direction: column;
margin: 0 !important;
}
.x_modal-header { flex: 0 0 auto; }
.x_modal-body { flex: 1; overflow: scroll; }
.x_modal-footer { padding-bottom: 24px !important; }
</style>
@else
<script>

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,12 +33,12 @@
</div>
</div>
<!--@end-->
</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>
</div>
</form>
<script cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/1'">
alert("{$XE_VALIDATOR_MESSAGE}");

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();">