|
|
@ -179,6 +179,9 @@ function getData(respone) { |
|
|
|
console.log('*********** >= 2 ***********') |
|
|
|
console.log('*********** >= 2 ***********') |
|
|
|
var tagMiniImage = '' |
|
|
|
var tagMiniImage = '' |
|
|
|
var loopImage = dataInstrument[i].clips.length |
|
|
|
var loopImage = dataInstrument[i].clips.length |
|
|
|
|
|
|
|
if (loopImage > 4){ |
|
|
|
|
|
|
|
loopImage = 4 |
|
|
|
|
|
|
|
} |
|
|
|
for(j=1;j<loopImage;j++){ |
|
|
|
for(j=1;j<loopImage;j++){ |
|
|
|
if (j==3){ |
|
|
|
if (j==3){ |
|
|
|
style4 = 'margin-top:5px' |
|
|
|
style4 = 'margin-top:5px' |
|
|
@ -358,11 +361,11 @@ function addData(){ |
|
|
|
'name':document.getElementById("nameI").value, |
|
|
|
'name':document.getElementById("nameI").value, |
|
|
|
'organization': userData.organizations[0].id, |
|
|
|
'organization': userData.organizations[0].id, |
|
|
|
} |
|
|
|
} |
|
|
|
if(document.getElementById("noteI").value != ''){ |
|
|
|
if(document.getElementById("CrI").value != ''){ |
|
|
|
data.caretaker = document.getElementById("idI").value |
|
|
|
data.caretaker = document.getElementById("CrI").value |
|
|
|
} |
|
|
|
} |
|
|
|
if(document.getElementById("noteI").value != ''){ |
|
|
|
if(document.getElementById("idI").value != ''){ |
|
|
|
data.instrument_id = document.getElementById("CrI").value |
|
|
|
data.instrument_id = document.getElementById("idI").value |
|
|
|
} |
|
|
|
} |
|
|
|
if(document.getElementById("noteI").value != ''){ |
|
|
|
if(document.getElementById("noteI").value != ''){ |
|
|
|
data.note = document.getElementById("noteI").value |
|
|
|
data.note = document.getElementById("noteI").value |
|
|
@ -399,8 +402,8 @@ function updateData(idData){ |
|
|
|
dataUpdate = { |
|
|
|
dataUpdate = { |
|
|
|
'name':document.getElementById("name"+idData).value, |
|
|
|
'name':document.getElementById("name"+idData).value, |
|
|
|
'note':document.getElementById("note"+idData).value, |
|
|
|
'note':document.getElementById("note"+idData).value, |
|
|
|
'caretaker':document.getElementById("id"+idData).value, |
|
|
|
'caretaker':document.getElementById("cr"+idData).value, |
|
|
|
'instrument_id':document.getElementById("cr"+idData).value, |
|
|
|
'instrument_id':document.getElementById("id"+idData).value, |
|
|
|
} |
|
|
|
} |
|
|
|
if(dataUri.length != 0){ |
|
|
|
if(dataUri.length != 0){ |
|
|
|
dataUpdate.clips = dataUri |
|
|
|
dataUpdate.clips = dataUri |
|
|
|