fix: assignment issues
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<div class="my-3"> {{ _(question) }} </div>
|
<div class="my-3"> {{ _(question) }} </div>
|
||||||
<input class="btn btn-default btn-sm border attach-file" type="file" accept="{{ accept }}" />
|
<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="btn btn-secondary ml-2 submit-work">{{ _("Submit") }}</div>
|
||||||
<div class="preview-work small hide">
|
<div class="preview-work hide">
|
||||||
<a target="_blank"></a>
|
<a target="_blank"></a>
|
||||||
<div class="btn btn-secondary btn-sm ml-2 clear-work">{{ _("Change") }}</div>
|
<div class="btn btn-secondary btn-sm ml-2 clear-work">{{ _("Change") }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -542,11 +542,13 @@ const make_editor = () => {
|
|||||||
|
|
||||||
|
|
||||||
const set_file_type = () => {
|
const set_file_type = () => {
|
||||||
|
let self = this;
|
||||||
let file_type = $("#file-type").data("type");
|
let file_type = $("#file-type").data("type");
|
||||||
if (file_type) {
|
if (file_type) {
|
||||||
$("#file-type option").each((i, elem) => {
|
$("#file-type option").each((i, elem) => {
|
||||||
if ($(elem).val() == file_type) {
|
if ($(elem).val() == file_type) {
|
||||||
$(elem).attr("selected", true);
|
$(elem).attr("selected", true);
|
||||||
|
self.file_type = file_type;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user