From 4ad1ce13b1b7743ef13c27ecf425e13c4e4b2a33 Mon Sep 17 00:00:00 2001 From: Macil Tech Date: Tue, 11 Jun 2013 10:18:41 -0500 Subject: Include non-compiled javascript in page.html too. --- templates/page.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page.html b/templates/page.html index e66b3fff..2f3de358 100644 --- a/templates/page.html +++ b/templates/page.html @@ -7,7 +7,12 @@ {{ title }} {% if config.default_stylesheet.1 != '' %}{% endif %} - {% if not nojavascript %}{% endif %} + {% if not nojavascript %} + + {% if not config.additional_javascript_compile %} + {% for javascript in config.additional_javascript %}{% endfor %} + {% endif %} + {% endif %} {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} -- cgit v1.3 From a5e5cd03e6936e17b91acfb485c7e8a19b4c0b2a Mon Sep 17 00:00:00 2001 From: Macil Tech Date: Tue, 18 Jun 2013 11:58:32 -0500 Subject: Don't forget secure tripcode that's preceded by a space. Mod capcodes are not remembered in the posting form. --- templates/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/main.js b/templates/main.js index b0a96393..9ec0025f 100644 --- a/templates/main.js +++ b/templates/main.js @@ -105,7 +105,7 @@ function generatePassword() { function dopost(form) { if (form.elements['name']) { - localStorage.name = form.elements['name'].value.replace(/ ##.+$/, ''); + localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, ''); } if (form.elements['email'] && form.elements['email'].value != 'sage') { localStorage.email = form.elements['email'].value; -- cgit v1.3