diff --git a/js/options/user-css.js b/js/options/user-css.js index 45376fe0..5eaa7736 100644 --- a/js/options/user-css.js +++ b/js/options/user-css.js @@ -27,7 +27,9 @@ var submit = $("").css({ apply_css(); }).appendTo(tab.content); -onready(function(){ +var main = function(){ + if (typeof styles === "undefined") return; + var stylechooser = $("").appendTo(tab.content); // Handle empty localStorage if (!localStorage.stylesheets_all_boards) localStorage.stylesheets_all_boards = "false"; @@ -78,7 +80,7 @@ onready(function(){ }); update_textarea(); -}); +} var apply_css = function() { var to_apply; @@ -125,5 +127,5 @@ var update_textarea = function() { apply_css(); }; - +main(); }(); diff --git a/templates/header.html b/templates/header.html index ab7db19f..e3690793 100644 --- a/templates/header.html +++ b/templates/header.html @@ -17,6 +17,13 @@ {% if config.locale != "en" %} {% endif %} + {% if not nojavascript %} {% if not config.additional_javascript_compile %} diff --git a/templates/index.html b/templates/index.html index 2af65bf8..de55bfd3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -88,16 +88,9 @@ {% for footer in config.footer %}
{{ footer }}
{% endfor %} -