This commit is contained in:
Your Name
2024-03-27 09:45:57 +03:00
parent 5259dc5292
commit b47e9391ba
3 changed files with 18 additions and 26 deletions

View File

@@ -47,15 +47,12 @@ function tableclick(x){
let datas = x.innerText.split('\t')
$('#getmodal').modal('show')
let rasp = document.getElementById('rapolog')
let vedomost = document.getElementById('vednumber')
//let rasp = document.getElementById('rapolog')
//let vedomost = document.getElementById('vednumber')
let invnom = document.getElementById('modal_invnom')
let matcen = document.getElementById('modal_matcenn')
//let matcen = document.getElementById('modal_matcenn')
invnom.innerText=datas[1]+"\t"
matcen.innerText=datas[2].substring(0,15)
@@ -76,8 +73,6 @@ function tableclick(x){
} )
$('#modalsavetodb').click(function(){
$.ajax({
url: "/addraspved",
@@ -89,16 +84,15 @@ function tableclick(x){
ved: vedomost.value,
inv: datas[1]
},
success:function() {
rasp.value = '';
vedomost.value= '';
data=[];
rasp
$('#getmodal').modal('hide');
getData();
}
})
rasp.value = '';
vedomost.value= '';
datas = [];
$('#getmodal').modal('hide');
getData();
})
}