diff --git a/lms/templates/assignment.html b/lms/templates/assignment.html index c8577887..f32fcb99 100644 --- a/lms/templates/assignment.html +++ b/lms/templates/assignment.html @@ -4,7 +4,7 @@
{{ _(question) }}
{{ _("Submit") }}
-
+
{{ _("Change") }}
diff --git a/lms/www/batch/learn.js b/lms/www/batch/learn.js index 16289d53..fc55da75 100644 --- a/lms/www/batch/learn.js +++ b/lms/www/batch/learn.js @@ -542,11 +542,13 @@ const make_editor = () => { const set_file_type = () => { + let self = this; let file_type = $("#file-type").data("type"); if (file_type) { $("#file-type option").each((i, elem) => { if ($(elem).val() == file_type) { $(elem).attr("selected", true); + self.file_type = file_type; } }) }