aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/configure.html
diff options
context:
space:
mode:
authorSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-03-01 22:21:10 +0100
committerSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-03-01 22:21:10 +0100
commit858c5c2b43ce16f6d4b388725ef2d7a95e4a1986 (patch)
treea5d4f24761bd768ea44118803162907f814c3980 /tpl/configure.html
parent58046a19ae3e8cba4b4dbef783bd3caed2f6e881 (diff)
downloadShaarli-858c5c2b43ce16f6d4b388725ef2d7a95e4a1986.tar.gz
Shaarli-858c5c2b43ce16f6d4b388725ef2d7a95e4a1986.tar.zst
Shaarli-858c5c2b43ce16f6d4b388725ef2d7a95e4a1986.zip
Added option to disable jQuery and heavy javascript
Shaarli uses light Javascript in its normal operation, and some jQuery for some features (autocomplete in tags, QR-Code popup...). jQuery can be slow on small computers. An option has been added in configuration screen to disable javascript features which are hard on CPU. (Note that the Picture Wall is awfully heavy *without* jQuery.) (Side note: A *LOT* of users want Shaarli to work without javasript at all, if possible. That's why I try to use as few javascript as possible: It keeps Shaarli pages fast.)
Diffstat (limited to 'tpl/configure.html')
-rw-r--r--tpl/configure.html17
1 files changed, 13 insertions, 4 deletions
diff --git a/tpl/configure.html b/tpl/configure.html
index 00c41f28..1beba59c 100644
--- a/tpl/configure.html
+++ b/tpl/configure.html
@@ -8,10 +8,19 @@
8 <form method="POST" action="" name="configform" id="configform"> 8 <form method="POST" action="" name="configform" id="configform">
9 <input type="hidden" name="token" value="{$token}"> 9 <input type="hidden" name="token" value="{$token}">
10 <table border="0" cellpadding="20"> 10 <table border="0" cellpadding="20">
11 <tr><td><b>Page title:</b></td><td><input type="text" name="title" id="title" size="50" value="{$title}"></td></tr> 11
12 <tr><td valign="top"><b>Timezone:</b></td><td>{$timezone_form}</td></tr> 12 <tr><td><b>Page title:</b></td><td><input type="text" name="title" id="title" size="50" value="{$title}"></td></tr>
13 <tr><td valign="top"><b>Redirector</b></td><td><input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br>(e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)</td></tr> 13
14 <tr> <td valign="top">Security:</td> <td><input type="checkbox" name="disablesessionprotection" id="disablesessionprotection" {if="!empty($GLOBALS['disablesessionprotection'])"}checked{/if}><label for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get disconnected often or if your IP address changes often.)</label></td></tr> 14 <tr><td valign="top"><b>Timezone:</b></td><td valign="top">{$timezone_form}</td></tr>
15
16 <tr><td valign="top"><b>Redirector</b></td><td><input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br>(e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)</td></tr>
17
18 <tr><td valign="top"><b>Security:</b></td><td><input type="checkbox" name="disablesessionprotection" id="disablesessionprotection" {if="!empty($GLOBALS['disablesessionprotection'])"}checked{/if}><label for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get disconnected often or if your IP address changes often.)</label></td></tr>
19
20 <tr><td valign="top"><b>Features:</b></td><td>
21 <input type="checkbox" name="disablejquery" id="disablejquery" {if="!empty($GLOBALS['disablejquery'])"}checked{/if}><label for="disablejquery">&nbsp;Disable jQuery and all heavy javascript (for example: Autocomplete in tags. Useful for slow computers.)</label>
22 </tr>
23
15 <tr><td></td><td align="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr> 24 <tr><td></td><td align="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr>
16 </table> 25 </table>
17 </form> 26 </form>