fix: assignment issues

This commit is contained in:
Jannat Patel
2022-11-01 14:39:30 +05:30
parent 9133a3f50b
commit 59b8c781e3
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<div class="my-3"> {{ _(question) }} </div>
<input class="btn btn-default btn-sm border attach-file" type="file" accept="{{ accept }}" />
<div class="btn btn-secondary ml-2 submit-work">{{ _("Submit") }}</div>
<div class="preview-work small hide">
<div class="preview-work hide">
<a target="_blank"></a>
<div class="btn btn-secondary btn-sm ml-2 clear-work">{{ _("Change") }}</div>
</div>

View File

@@ -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;
}
})
}