Remove JS editor remnants

This was another issue mentioned in #28
pull/29/head
Matt Baer 6 years ago
parent a0f8a2df3b
commit 778098d925
  1. 5
      templates/user/collection.tmpl

@ -199,7 +199,6 @@ function createHidden(theForm, key, value) {
function disableSubmit() {
var $form = document.forms['customize-form'];
createHidden($form, 'style_sheet', cssEditor.getSession().getValue());
createHidden($form, 'script', jsEditor.getSession().getValue());
var $btn = document.getElementById("save-changes");
$btn.value = "Saving changes...";
$btn.disabled = true;
@ -224,10 +223,6 @@ var cssEditor = ace.edit("css-editor");
cssEditor.setTheme(theme);
cssEditor.session.setMode("ace/mode/css");
cssEditor.setOptions(opt);
var jsEditor = ace.edit("js-editor");
jsEditor.setTheme(theme);
jsEditor.session.setMode("ace/mode/javascript");
jsEditor.setOptions(opt);
</script>
{{template "footer" .}}

Loading…
Cancel
Save