mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 01:34:31 +01:00
Fix js error when allow_delete is false
This commit is contained in:
parent
a702a20058
commit
054b9b8220
@ -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…
Reference in New Issue
Block a user