reworked the exercise edit dialog. Moved javascript part from editor_edit.js.erb to exercises.js.erb.

Manipulated some further javascript as necessary. It is not super elegant, but this is due to the former structure of the code which uses cloned dummy forms.
Integrating the ace editor made some strange calls necessary.
Also fixed toggling the input area and the file upload dialog
This commit is contained in:
Ralf Teusner
2016-10-12 16:35:21 +02:00
parent 4cf192d0f3
commit accf0550d7
6 changed files with 84 additions and 62 deletions

View File

@ -1,5 +1,5 @@
#editor-edit.panel-group.row data-exercise-id=@exercise.id
#editor-edit.panel-group.row.original-input data-exercise-id=@exercise.id
#frames
.frame
.edit-frame
.editor-content.hidden
.editor