diff --git a/instrument.html b/instrument.html index 21ccd58..f9d18aa 100755 --- a/instrument.html +++ b/instrument.html @@ -129,6 +129,10 @@
ผู้ดูแล
+
+
สถานที่
+
+
วีดีโอ(youtube)
diff --git a/js/stdb.js b/js/stdb.js index 71a297e..0910c39 100755 --- a/js/stdb.js +++ b/js/stdb.js @@ -129,14 +129,14 @@ function getDataStat(respone){ function getData(respone) { // console.log(dataInstrument) - console.log(respone) - console.log("---------------- Next") - console.log(respone.next) + // console.log(respone) + // console.log("---------------- Next") + // console.log(respone.next) // console.log(respone.results) - console.log(dataInstrument) + // console.log(dataInstrument) dataInstrument = dataInstrument.concat(respone.results) - console.log('*******ฬฬฬฬฬฬฬฬฬ*********') - console.log(respone.results) + // console.log('*******ฬฬฬฬฬฬฬฬฬ*********') + // console.log(respone.results) var htmlText = '' var modalText = '' @@ -266,6 +266,10 @@ function getData(respone) { +'
ผู้ดูแล
' +'
' +'
' + +'
' + +'
สถานที่
' + +'
' + +'
' +'
' +'
วีดีโอ(youtube)
' +'
' @@ -459,15 +463,18 @@ function addData(){ if(document.getElementById("noteI").value != ''){ data.note = document.getElementById("noteI").value } + if(document.getElementById("LcI").value != ''){ + data.location = document.getElementById("LcI").value + } if(document.getElementById("YlI").value != ''){ data.model = document.getElementById("YlI").value } if(dataUri.length != 0){ data.clips = dataUri } - console.log(data) + // console.log(data) data = JSON.stringify(data) - console.log(data) + // console.log(data) token = sessionStorage.getItem('token') $.ajax({ type: "POST", @@ -487,14 +494,15 @@ function addData(){ } function updateData(idData){ - console.log(document.getElementById("name"+idData)) - console.log(document.getElementById("note"+idData)) - console.log(document.getElementById("id"+idData)) - console.log(document.getElementById("cr"+idData)) + // console.log(document.getElementById("name"+idData)) + // console.log(document.getElementById("note"+idData)) + // console.log(document.getElementById("id"+idData)) + // console.log(document.getElementById("cr"+idData)) dataUpdate = { 'name':document.getElementById("name"+idData).value, 'note':document.getElementById("note"+idData).value, 'caretaker':document.getElementById("cr"+idData).value, + 'location':document.getElementById("lc"+idData).value, 'instrument_id':document.getElementById("id"+idData).value, 'model':document.getElementById("yl"+idData).value, }