From 6f8ed103aeefadb411c4c2a797ebdd54bcacc331 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Wed, 11 Dec 2024 15:26:39 +0900 Subject: [PATCH] [bugfix] edit document form empty and comment edit form to multiline --- view_comment.skin.php | 19 ++++++++----------- write.php | 10 ---------- write.skin.php | 8 ++------ 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/view_comment.skin.php b/view_comment.skin.php index 69af175..bf056a9 100644 --- a/view_comment.skin.php +++ b/view_comment.skin.php @@ -1,4 +1,4 @@ - @@ -93,19 +93,16 @@ if (!defined("_GNUBOARD_"))

- - " - id="secret_comment_"> - + " id="secret_comment_"> + @@ -113,7 +110,7 @@ if (!defined("_GNUBOARD_")) = $board['bo_html_level']) $is_secret = $board['bo_use_secret']; -//$is_mail = false; -//if ($config['cf_email_use'] && $board['bo_use_email']) -// $is_mail = true; - -//$recv_email_checked = ''; -//if ($w == '' || strstr($write['wr_option'], 'mail')) -// $recv_email_checked = 'checked'; - $is_name = false; $is_password = false; $is_email = false; @@ -291,8 +283,6 @@ if ($w == "" || $w == "r") { if (isset($write['wr_name'])) { $name = get_text(cut_str(stripslashes($write['wr_name']), 20)); } - //$email = get_email_address($member['mb_email']); - //$homepage = get_text(stripslashes($member['mb_homepage'])); } } diff --git a/write.skin.php b/write.skin.php index 3f7f261..f9871f4 100644 --- a/write.skin.php +++ b/write.skin.php @@ -26,10 +26,6 @@ if ($is_notice || $is_html || $is_secret || $is_mail) { $option_hidden .= ''; } } - - //if ($is_mail) { - // $option .= "\n".''."\n".''; - //} } echo $option_hidden; @@ -53,7 +49,7 @@ echo $option_hidden;
"> +

- + 뒤로 @@ -90,6 +86,6 @@ echo $option_hidden; document.getElementById("content").addEventListener("input", function() { this.style.height = 'auto'; - this.style.height = this.scrollHeight + 'px'; + this.style.height = `calc(${this.scrollHeight}px + 0.25em)`; });