diff options
| author | Fredrick Brennan <admin@8chan.co> | 2014-05-19 14:11:24 -0400 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-05-19 14:11:24 -0400 |
| commit | 0be16cf1782724131a3de80b691d08a5a964638f (patch) | |
| tree | 700f03de35a790dbbff771e5a930eb0e686931ee /templates/main.js | |
| parent | 65a14a0d39da375a08f4dfbb7225ee7906bb0601 (diff) | |
Fix js error when allow_delete is false
Diffstat (limited to 'templates/main.js')
| -rw-r--r-- | templates/main.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/main.js b/templates/main.js index 953d8849..231b8043 100644 --- a/templates/main.js +++ b/templates/main.js @@ -264,10 +264,14 @@ var script_settings = function(script_name) { function init() { init_stylechooser(); - + + {% endraw %} + {% if config.allow_delete %} if (document.forms.postcontrols) { document.forms.postcontrols.password.value = localStorage.password; } + {% endif %} + {% raw %} if (window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1)) highlightReply(window.location.hash.substring(1)); |
