Fix js error when allow_delete is false
This commit is contained in:
parent
65a14a0d39
commit
0be16cf178
@ -265,9 +265,13 @@ var script_settings = function(script_name) {
|
|||||||
function init() {
|
function init() {
|
||||||
init_stylechooser();
|
init_stylechooser();
|
||||||
|
|
||||||
|
{% endraw %}
|
||||||
|
{% if config.allow_delete %}
|
||||||
if (document.forms.postcontrols) {
|
if (document.forms.postcontrols) {
|
||||||
document.forms.postcontrols.password.value = localStorage.password;
|
document.forms.postcontrols.password.value = localStorage.password;
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
if (window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1))
|
if (window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1))
|
||||||
highlightReply(window.location.hash.substring(1));
|
highlightReply(window.location.hash.substring(1));
|
||||||
|
Loading…
Reference in New Issue
Block a user