fixed bugs

This commit is contained in:
2024-10-27 13:24:35 +04:00
parent 1325bf8b24
commit 994884d3c9
2 changed files with 28 additions and 13 deletions
+11 -3
View File
@@ -131,6 +131,14 @@
</div>
<script>
function refresh_table(){
// location reload in 2 seconds
setTimeout(function(){
location.reload();
}, 2000);
}
function handleImport(id) {
formdata = new FormData();
formdata.append('id', id);
@@ -171,7 +179,7 @@
showWarningPopup("Excel data format is not valid!")
} else {
$('#f_csv').val("");
showWarningAlert("Server eeee.")
showWarningAlert("Server Error.")
}
}
})
@@ -197,7 +205,7 @@
$('#ajax_preloader').fadeOut();
if (data.code == "success") {
showSuccessAlert("Successfully imported!");
window.location.reload();
refresh_table();
} else {
showWarningAlert("Server Error.")
}
@@ -326,7 +334,7 @@
let str_arr_option = '';
for (let i = 0; i < arr_similary.length; i++) {
str_arr_option += '<option value="' + arr_similary[i]['refid'] + '">' + arr_similary[i]['namecompoundsvocabulary'] + '</option>';
str_arr_option += '<option value="' + arr_similary[i]['idcompoundsvocabulary'] + '">' + arr_similary[i]['namecompoundsvocabulary'] + '</option>';
}
str_arr_option += tmp_str_arr_compunds_kind_option;