From 45c4da14e21e4588584b3dc3d7568b4b87367a82 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 4 Jul 2020 00:22:13 +0900 Subject: [PATCH] Fix #1318 comment report form template --- modules/comment/tpl/css/declare_comment.css | 22 +++--- modules/comment/tpl/declare_comment.html | 86 ++++++++++----------- 2 files changed, 52 insertions(+), 56 deletions(-) diff --git a/modules/comment/tpl/css/declare_comment.css b/modules/comment/tpl/css/declare_comment.css index 5e6e52041..983d0d1af 100644 --- a/modules/comment/tpl/css/declare_comment.css +++ b/modules/comment/tpl/css/declare_comment.css @@ -2,18 +2,16 @@ div.xe_mobile { display:none!important; } -section.declare_comment{ - display:block; +select#message_option { + clear: both; + width: 90%; + margin-bottom: 8px; } -section.declare_comment label{ - font-weight: bold; -} -section.declare_comment select,section.declare_comment textarea{ - box-sizing:border-box; - height:auto; + +textarea#declare_message { width: 100%; - padding:7px; - font-size: 11pt; - line-height: normal; - display:block; + height: 80px; + margin-bottom: 8px; + box-sizing: border-box; + display: none; } \ No newline at end of file diff --git a/modules/comment/tpl/declare_comment.html b/modules/comment/tpl/declare_comment.html index 2740be0e1..5ce687458 100644 --- a/modules/comment/tpl/declare_comment.html +++ b/modules/comment/tpl/declare_comment.html @@ -1,56 +1,54 @@ {@Context::addMetaTag('viewport', 'width=device-width, user-scalable=no', FALSE);} - -
-

{$lang->improper_comment_declare}

-
- - - - - + + + + + + +
+

{$lang->improper_comment_declare} {$lang->cmd_cancel}

+
+

{$lang->replies}

{$target_comment->getSummary(200)}

- -
- - -

{$lang->about_improper_comment_declare}

-

-
-
- +
+ +
+ + +

{$lang->about_improper_comment_declare}

- -
+ + + + \ No newline at end of file + $('select[name="message_option"]').change(function(){ + if ($(this).val()==='others') { + $('#declare_message').show(); + } else { + $('#declare_message').hide(); + } + setFixedPopupSize(); + }); + }); + })(jQuery); +