client Var value for disabling scripts

This commit is contained in:
John McLear 2016-05-20 14:42:05 +01:00
parent 94920e5552
commit a8487dd5dc
1 changed files with 7 additions and 2 deletions

View File

@ -226,8 +226,13 @@ function Ace2Editor()
var includedCSS = [];
var $$INCLUDE_CSS = function(filename) {includedCSS.push(filename)};
$$INCLUDE_CSS("../static/css/iframe_editor.css");
$$INCLUDE_CSS("../static/css/pad.css");
$$INCLUDE_CSS("../static/custom/pad.css");
// disableCustomScriptsAndStyles can be used to disable loading of custom scripts
if(!clientVars.disableCustomScriptsAndStyles){
console.log("loading custom shit"); // cake remove me
$$INCLUDE_CSS("../static/css/pad.css");
$$INCLUDE_CSS("../static/custom/pad.css");
}
var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){
if (path.match(/\/\//)) { // Allow urls to external CSS - http(s):// and //some/path.css