33 lines
719 B
JavaScript
33 lines
719 B
JavaScript
$( document ).ready(function() {
|
|
|
|
|
|
$(".updatebtn").click(function(){
|
|
|
|
|
|
var audid = document.getElementById('auditory_dubl').value;
|
|
var invnum = document.getElementById('invnomer').textContent;
|
|
|
|
console.log('start perenos')
|
|
|
|
$.ajax({
|
|
url: "/perenos",
|
|
type: 'get',
|
|
contentType: 'application/json',
|
|
dataType: 'json',
|
|
data: {'audid':audid,
|
|
'invnum':invnum
|
|
},
|
|
error: function(error){
|
|
console.log(error);
|
|
}
|
|
})
|
|
|
|
invnomer.textContent=''
|
|
nazvanie.textContent=''
|
|
aud.textContent=''
|
|
auditory_dubl.selectedIndex = 0;
|
|
})
|
|
|
|
|
|
})
|