add multifile support
This commit is contained in:
parent
34cf28a2b2
commit
c11edf96c9
4 changed files with 70 additions and 44 deletions
|
@ -47,14 +47,17 @@
|
|||
|
||||
<script>
|
||||
|
||||
function fill_edit_form(id, was, wann, wo, hash, container) {
|
||||
|
||||
document.getElementById('id').value = id;
|
||||
document.getElementById('was').value = was;
|
||||
document.getElementById('wann').value = wann;
|
||||
document.getElementById('wo').value = wo;
|
||||
document.getElementById('container').value = container;
|
||||
document.getElementById('img-upload').src = "/upload/"+hash;
|
||||
function fill_edit_form(item) {
|
||||
document.getElementById('id').value = item.id;
|
||||
document.getElementById('was').value = item.was;
|
||||
document.getElementById('wann').value = item.wann;
|
||||
document.getElementById('wo').value = item.wo;
|
||||
document.getElementById('container').value = item.container;
|
||||
if(item.files&&item.files.length>0){
|
||||
document.getElementById('img-upload').src = "/upload/"+item.files[0].hash;
|
||||
}else{
|
||||
document.getElementById('img-upload').src = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue