aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/editlink.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/default/editlink.html')
-rw-r--r--tpl/default/editlink.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html
index a0ea91b2..95e60cc1 100644
--- a/tpl/default/editlink.html
+++ b/tpl/default/editlink.html
@@ -9,7 +9,7 @@
9 {/if} 9 {/if}
10 <div id="editlinkform" class="pure-g"> 10 <div id="editlinkform" class="pure-g">
11 <div class="pure-u-lg-1-5 pure-u-1-8"></div> 11 <div class="pure-u-lg-1-5 pure-u-1-8"></div>
12 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-3-4" > 12 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-3-4 page-form page-form-light">
13 <h2>{'Shaare'|t}</h2> 13 <h2>{'Shaare'|t}</h2>
14 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> 14 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
15 <div> 15 <div>
@@ -28,7 +28,8 @@
28 <label for="lf_description">{'Description'|t}</label> 28 <label for="lf_description">{'Description'|t}</label>
29 </div> 29 </div>
30 <div> 30 <div>
31 <textarea name="lf_description" id="lf_description">{$link.description}</textarea> 31 <textarea name="lf_description" id="lf_description" onkeyup="textAreaAdjust(this)"
32 >{$link.description}</textarea>
32 </div> 33 </div>
33 <div> 34 <div>
34 <label for="lf_tags">{'Tags'|t}</label> 35 <label for="lf_tags">{'Tags'|t}</label>
@@ -77,6 +78,10 @@
77 } else { 78 } else {
78 document.linkform.lf_tags.focus(); 79 document.linkform.lf_tags.focus();
79 } 80 }
81
82 function textAreaAdjust(el) {
83 el.style.height = (el.scrollHeight > el.clientHeight) ? (el.scrollHeight)+"px" : (el.clientHeight-8)+"px";
84 }
80</script> 85</script>
81</body> 86</body>
82</html> 87</html>