fixed bugs
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user