aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/page.footer.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/page.footer.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/page.footer.html')
-rw-r--r--tpl/page.footer.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/tpl/page.footer.html b/tpl/page.footer.html
index 3aa47ba6..8e5869c5 100644
--- a/tpl/page.footer.html
+++ b/tpl/page.footer.html
@@ -7,24 +7,3 @@
7{if="isLoggedIn()"} 7{if="isLoggedIn()"}
8<script language="JavaScript">function confirmDeleteLink() { var agree=confirm("Are you sure you want to delete this link ?"); if (agree) return true ; else return false ; }</script> 8<script language="JavaScript">function confirmDeleteLink() { var agree=confirm("Are you sure you want to delete this link ?"); if (agree) return true ; else return false ; }</script>
9{/if} 9{/if}
10
11{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
12<script language="JavaScript">
13$(document).ready(function()
14{
15 $('#lf_tags').autocomplete({source:'{$source}?ws=tags',minLength:1});
16 $('#searchtags').autocomplete({source:'{$source}?ws=tags',minLength:1});
17 $('#fromtag').autocomplete({source:'{$source}?ws=singletag',minLength:1});
18});
19</script>
20{/if}
21
22{if="empty($GLOBALS['disablejquery']) && isset($_GET['searchterm'])"}
23<script src="inc/jquery.highlight.js#"></script>
24<script language="JavaScript">
25$(document).ready(function()
26{
27 $('#linklist li').highlight("{$search_crits}");
28});
29</script>
30{/if} \ No newline at end of file