support comment resize
This commit is contained in:
parent
9b446331a1
commit
be7d60fbde
1 changed files with 7 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ if (!defined("_GNUBOARD_"))
|
|||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
|
||||
<p class="ui-text-area">
|
||||
<input type="text" name="wr_content" required class="frm-input full" value="<?= $list[$i]['wr_content'] ?>">
|
||||
<textarea name="wr_content" required class="frm-input full" value="<?= $list[$i]['wr_content'] ?>" oninput="wr_resize(this);" style="resize: vertical !important; transition: none; min-height: 1em;"></textarea>
|
||||
<button type="submit" class="ui-btn" accesskey='s'>입력</button>
|
||||
</p>
|
||||
<?php if (!$is_member && $is_comment_write) { ?>
|
||||
|
|
@ -110,6 +110,11 @@ if (!defined("_GNUBOARD_"))
|
|||
<?php } ?> </li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
function wr_resize(e) {
|
||||
e.style.height = 'auto';
|
||||
e.style.height = e.scrollHeight + 'px';
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
include_once "$board_skin_path/view_skin_js.php";
|
||||
|
|
|
|||
Loading…
Reference in a new issue