separate editor for each file
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
a.file-heading data-toggle="collapse" data-parent="#files" href="#collapse#{file.id}"
|
||||
div.clearfix role="button"
|
||||
span = file.name
|
||||
/.panel-collapse.collapse id="collapse#{file.id}" role="tabpanel"
|
||||
.panel-collapse.collapse id="collapse#{file.id}" role="tabpanel"
|
||||
.panel-body
|
||||
.clearfix = link_to(t('shared.destroy'), '#', class:'btn btn-warning btn-sm discard-file pull-right')
|
||||
.form-group
|
||||
|
@ -32,7 +32,7 @@
|
||||
h2 = t('activerecord.attributes.exercise.files')
|
||||
|
||||
/hidden editor -> to be deleted
|
||||
.hidden = render('ace', exercise: @exercise, file: @files.first)
|
||||
= 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
|
||||
|
Reference in New Issue
Block a user