diff options
author | Sebastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-09-25 21:27:50 +0200 |
---|---|---|
committer | Sebastien SAUVAGE <sebsauvage@sebsauvage.net> | 2013-09-25 21:27:50 +0200 |
commit | 246e9b4e37cf85a04f52a22a61a4e705d51f96b4 (patch) | |
tree | 7bdecca36f5d248025248bf226525b0d74fd158b /tpl/changetag.html | |
parent | af77b2fd9a574ba03b309ea0799946fabf37c7d1 (diff) | |
download | Shaarli-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/changetag.html')
-rw-r--r-- | tpl/changetag.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tpl/changetag.html b/tpl/changetag.html index b0bd0d06..b22bddea 100644 --- a/tpl/changetag.html +++ b/tpl/changetag.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 onload="document.changetag.fromtag.focus();"> | 6 | <body onload="document.changetag.fromtag.focus();"> |
5 | <div id="pageheader"> | 7 | <div id="pageheader"> |
6 | {include="page.header"} | 8 | {include="page.header"} |
@@ -12,5 +14,13 @@ | |||
12 | <script language="JavaScript">function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script> | 14 | <script language="JavaScript">function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script> |
13 | </div> | 15 | </div> |
14 | {include="page.footer"} | 16 | {include="page.footer"} |
17 | {if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"} | ||
18 | <script language="JavaScript"> | ||
19 | $(document).ready(function() | ||
20 | { | ||
21 | $('#fromtag').autocomplete({source:'{$source}?ws=singletag',minLength:1}); | ||
22 | }); | ||
23 | </script> | ||
24 | {/if} | ||
15 | </body> | 25 | </body> |
16 | </html> \ No newline at end of file | 26 | </html> \ No newline at end of file |