add all files
This commit is contained in:
32
static/js/index.js
Normal file
32
static/js/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
$( 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;
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user