X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wradmin.git/blobdiff_plain/9f9969d09d9b027e93183d2df7de312772954b39..ae4a94a1f054903761d8651f6c255dac8fba192a:/wradmin/templates/json_editor.html diff --git a/wradmin/templates/json_editor.html b/wradmin/templates/json_editor.html index fb82fb5..31ea653 100644 --- a/wradmin/templates/json_editor.html +++ b/wradmin/templates/json_editor.html @@ -232,15 +232,13 @@ // Initialize the editor with a JSON schema var editor = new JSONEditor(document.getElementById('editor_holder'), { - // https://www.winterrodeln.org/mediawiki/index.php?title=Winterrodeln:Datenschema/Rodelbahn/V1.json&action=raw - schema: {"$ref": "{{schema_url}}"}, + schema: {"$ref": {{schema_url|tojson}}}, theme: 'bootstrap4', ajax: true }); editor.on('ready',() => { - // https://www.winterrodeln.org/mediawiki/index.php?title=Latschenh%C3%BCtte/Rodelbahn.json&action=raw - fetch("{{json_url}}").then( + fetch({{json_url|tojson}}).then( function(response) { return response.json(); }).then(