diff options
Diffstat (limited to 'tpl/default/editlink.html')
-rw-r--r-- | tpl/default/editlink.html | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 4f10ffb2..d6f81f96 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html | |||
@@ -33,8 +33,7 @@ | |||
33 | <label for="lf_description">{'Description'|t}</label> | 33 | <label for="lf_description">{'Description'|t}</label> |
34 | </div> | 34 | </div> |
35 | <div> | 35 | <div> |
36 | <textarea name="lf_description" id="lf_description" onkeyup="textAreaAdjust(this)" | 36 | <textarea name="lf_description" id="lf_description">{$link.description}</textarea> |
37 | >{$link.description}</textarea> | ||
38 | </div> | 37 | </div> |
39 | <div> | 38 | <div> |
40 | <label for="lf_tags">{'Tags'|t}</label> | 39 | <label for="lf_tags">{'Tags'|t}</label> |
@@ -46,7 +45,7 @@ | |||
46 | 45 | ||
47 | <div> | 46 | <div> |
48 | <input type="checkbox" name="lf_private" id="lf_private" | 47 | <input type="checkbox" name="lf_private" id="lf_private" |
49 | {if="($link_is_new && $default_private_links) || $link.private == true"} | 48 | {if="($link_is_new && $default_private_links || $link.private == true)"} |
50 | checked="checked" | 49 | checked="checked" |
51 | {/if}> | 50 | {/if}> |
52 | <label for="lf_private">{'Private'|t}</label> | 51 | <label for="lf_private">{'Private'|t}</label> |
@@ -62,7 +61,7 @@ | |||
62 | <div class="submit-buttons center"> | 61 | <div class="submit-buttons center"> |
63 | <input type="submit" value="{'Save'|t}" name="save_edit" class=""> | 62 | <input type="submit" value="{'Save'|t}" name="save_edit" class=""> |
64 | {if="!$link_is_new"} | 63 | {if="!$link_is_new"} |
65 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" | 64 | <a href="?delete_link&lf_linkdate={$link.id}&token={$token}" |
66 | title="" name="delete_link" class="button button-red confirm-delete"> | 65 | title="" name="delete_link" class="button button-red confirm-delete"> |
67 | {'Delete'|t} | 66 | {'Delete'|t} |
68 | </a> | 67 | </a> |
@@ -75,7 +74,7 @@ | |||
75 | {/if} | 74 | {/if} |
76 | </form> | 75 | </form> |
77 | </div> | 76 | </div> |
78 | {if="$source !== 'firefoxsocialapi'"} | 77 | {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"} |
79 | {include="page.footer"} | 78 | {include="page.footer"} |
80 | {/if} | 79 | {/if} |
81 | <script> | 80 | <script> |
@@ -87,12 +86,6 @@ | |||
87 | } else { | 86 | } else { |
88 | document.linkform.lf_tags.focus(); | 87 | document.linkform.lf_tags.focus(); |
89 | } | 88 | } |
90 | function textAreaAdjust(el) { | ||
91 | el.style.height = (el.scrollHeight > el.clientHeight) ? (el.scrollHeight) + "px" : (el.clientHeight - 18) + "px"; | ||
92 | } | ||
93 | (function (window, document) { | ||
94 | textAreaAdjust(document.linkform.lf_description) | ||
95 | })(this, this.document); | ||
96 | </script> | 89 | </script> |
97 | </body> | 90 | </body> |
98 | </html> | 91 | </html> |