From 9a47f126e4330b18010d09bbaaa2cdac60e27a48 Mon Sep 17 00:00:00 2001 From: yqbk Date: Wed, 17 Aug 2016 13:50:01 +0200 Subject: [PATCH] routing error --- app/assets/javascripts/editor.js.erb | 2 +- app/views/exercises/_form.html.slim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/editor.js.erb b/app/assets/javascripts/editor.js.erb index ea6c9424..dff940e8 100644 --- a/app/assets/javascripts/editor.js.erb +++ b/app/assets/javascripts/editor.js.erb @@ -838,7 +838,7 @@ $(function() { active_frame = frame; // should not be hidden to generate multiple ace editors in edit mode //$('.frame').hide(); - frame.show(); + $('.frame').show(); }; var showOutput = function(event) { diff --git a/app/views/exercises/_form.html.slim b/app/views/exercises/_form.html.slim index 1b42eb7c..4b4baea1 100644 --- a/app/views/exercises/_form.html.slim +++ b/app/views/exercises/_form.html.slim @@ -32,7 +32,7 @@ h2 = t('activerecord.attributes.exercise.files') /hidden editor -> to be deleted - = render('ace', exercise: @exercise, file: @files.first) + .hide = render('ace', exercise: @exercise, file: @files.first) /after use $('.frame').show() in js console everything works fine, probably editors are hidden somewhere in editor.js because we get "display:none" on frames ul#files.list-unstyled.panel-group