fixed problem that no new files could be added to an exercise
This commit is contained in:
@ -228,7 +228,8 @@ $(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($.isController('exercises')) {
|
if ($.isController('exercises')) {
|
||||||
if ($('table').isPresent()) {
|
// ignore tags table since it is in the dom before other tables
|
||||||
|
if ($('table:not(#tags-table)').isPresent()) {
|
||||||
enableBatchUpdate();
|
enableBatchUpdate();
|
||||||
} else if ($('.edit_exercise, .new_exercise').isPresent()) {
|
} else if ($('.edit_exercise, .new_exercise').isPresent()) {
|
||||||
execution_environments = $('form').data('execution-environments');
|
execution_environments = $('form').data('execution-environments');
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
= f.number_field "expected_worktime_minutes", value: @exercise.expected_worktime_seconds / 60, in: 1..1000, step: 1
|
= f.number_field "expected_worktime_minutes", value: @exercise.expected_worktime_seconds / 60, in: 1..1000, step: 1
|
||||||
h2 Tags
|
h2 Tags
|
||||||
.table-responsive
|
.table-responsive
|
||||||
table.table
|
table.table#tags-table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th = t('activerecord.attributes.exercise.selection')
|
th = t('activerecord.attributes.exercise.selection')
|
||||||
|
Reference in New Issue
Block a user