aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/editlink.html
diff options
context:
space:
mode:
authorSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-09-25 21:27:50 +0200
committerSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-09-25 21:27:50 +0200
commit246e9b4e37cf85a04f52a22a61a4e705d51f96b4 (patch)
tree7bdecca36f5d248025248bf226525b0d74fd158b /tpl/editlink.html
parentaf77b2fd9a574ba03b309ea0799946fabf37c7d1 (diff)
downloadShaarli-246e9b4e37cf85a04f52a22a61a4e705d51f96b4.tar.gz
Shaarli-246e9b4e37cf85a04f52a22a61a4e705d51f96b4.tar.zst
Shaarli-246e9b4e37cf85a04f52a22a61a4e705d51f96b4.zip
Removed jQuery from almost all pages
jQuery has been removed from all pages, except those who really require it (like autocomplete in link edition). Immediate gain: All pages weight 286 kb LESS ! \o/ Highlighting in search results has also been temporarly removed (and will be re-implemented).
Diffstat (limited to 'tpl/editlink.html')
-rw-r--r--tpl/editlink.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/tpl/editlink.html b/tpl/editlink.html
index ad549137..4a2c30cc 100644
--- a/tpl/editlink.html
+++ b/tpl/editlink.html
@@ -1,6 +1,8 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3<head>{include="includes"}</head> 3<head>{include="includes"}
4{if="empty($GLOBALS['disablejquery'])"}<script src="inc/jquery.min.js#"></script><script src="inc/jquery-ui.min.js#"></script>{/if}
5</head>
4<body 6<body
5{if condition="$link.title==''"}onload="document.linkform.lf_title.focus();" 7{if condition="$link.title==''"}onload="document.linkform.lf_title.focus();"
6{elseif condition="$link.description==''"}onload="document.linkform.lf_description.focus();" 8{elseif condition="$link.description==''"}onload="document.linkform.lf_description.focus();"
@@ -30,5 +32,13 @@
30 </div> 32 </div>
31</div> 33</div>
32{include="page.footer"} 34{include="page.footer"}
35{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
36<script language="JavaScript">
37$(document).ready(function()
38{
39 $('#lf_tags').autocomplete({source:'{$source}?ws=tags',minLength:1});
40});
41</script>
42{/if}
33</body> 43</body>
34</html> \ No newline at end of file 44</html> \ No newline at end of file