aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/editlink.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-12 12:59:05 +0100
committerGitHub <noreply@github.com>2017-03-12 12:59:05 +0100
commit5eca4ea11ef7c292e8b1352a41db12183e159361 (patch)
tree268362f0c4cc4ef9b19b0a1e93099acb34059a60 /tpl/default/editlink.html
parentcffc5ce3d1fb1d7154cf1e63ae09987d6528606c (diff)
parentb9b41d25e319f44f9fb8259a0237a8ee81ad394b (diff)
downloadShaarli-5eca4ea11ef7c292e8b1352a41db12183e159361.tar.gz
Shaarli-5eca4ea11ef7c292e8b1352a41db12183e159361.tar.zst
Shaarli-5eca4ea11ef7c292e8b1352a41db12183e159361.zip
Merge pull request #809 from ArthurHoaro/cleanup/inline-js
Remove inline JS and add LibreJS headers in JS files
Diffstat (limited to 'tpl/default/editlink.html')
-rw-r--r--tpl/default/editlink.html28
1 files changed, 6 insertions, 22 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html
index 2180c080..491f1da0 100644
--- a/tpl/default/editlink.html
+++ b/tpl/default/editlink.html
@@ -4,11 +4,7 @@
4 {include="includes"} 4 {include="includes"}
5</head> 5</head>
6<body> 6<body>
7 {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"} 7 {include="page.header"}
8 {include="page.header"}
9 {else}
10 <div class="center">Shaare to: {$shaarlititle}</div>
11 {/if}
12 <div id="editlinkform" class="pure-g"> 8 <div id="editlinkform" class="pure-g">
13 <div class="pure-u-lg-1-5 pure-u-1-24"></div> 9 <div class="pure-u-lg-1-5 pure-u-1-24"></div>
14 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light"> 10 <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light">
@@ -21,25 +17,25 @@
21 <label for="lf_url">{'URL'|t}</label> 17 <label for="lf_url">{'URL'|t}</label>
22 </div> 18 </div>
23 <div> 19 <div>
24 <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input"> 20 <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input autofocus">
25 </div> 21 </div>
26 <div> 22 <div>
27 <label for="lf_title">{'Title'|t}</label> 23 <label for="lf_title">{'Title'|t}</label>
28 </div> 24 </div>
29 <div> 25 <div>
30 <input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input"> 26 <input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input autofocus">
31 </div> 27 </div>
32 <div> 28 <div>
33 <label for="lf_description">{'Description'|t}</label> 29 <label for="lf_description">{'Description'|t}</label>
34 </div> 30 </div>
35 <div> 31 <div>
36 <textarea name="lf_description" id="lf_description">{$link.description}</textarea> 32 <textarea name="lf_description" id="lf_description" class="autofocus">{$link.description}</textarea>
37 </div> 33 </div>
38 <div> 34 <div>
39 <label for="lf_tags">{'Tags'|t}</label> 35 <label for="lf_tags">{'Tags'|t}</label>
40 </div> 36 </div>
41 <div> 37 <div>
42 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input" 38 <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input autofocus"
43 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" > 39 data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" >
44 </div> 40 </div>
45 41
@@ -74,18 +70,6 @@
74 {/if} 70 {/if}
75 </form> 71 </form>
76 </div> 72 </div>
77 {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"} 73 {include="page.footer"}
78 {include="page.footer"}
79 {/if}
80<script>
81 awesompleteUniqueTag('#lf_tags');
82 if (!document.linkform.lf_title.value) {
83 document.linkform.lf_title.focus();
84 } else if (!document.linkform.lf_description.value) {
85 document.linkform.lf_description.focus();
86 } else {
87 document.linkform.lf_tags.focus();
88 }
89</script>
90</body> 74</body>
91</html> 75</html>