Browse Source

Fix js error when allow_delete is false

pull/40/head
Fredrick Brennan 10 years ago
parent
commit
0be16cf178
  1. 6
      templates/main.js

6
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));

Loading…
Cancel
Save