fixed problem that no new files could be added to an exercise

This commit is contained in:
Thomas Hille
2017-03-21 17:35:46 +01:00
parent 4a9867b81b
commit 7c986f2de7
2 changed files with 3 additions and 2 deletions

View File

@ -228,7 +228,8 @@ $(function() {
}
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();
} else if ($('.edit_exercise, .new_exercise').isPresent()) {
execution_environments = $('form').data('execution-environments');