Revision 1719,
999 bytes
checked in by amuller, 15 years ago
(diff) |
Ticket #597 - Melhorias no módulo gerenciador de arquivos com ajax
|
Line | |
---|
1 | function addNewInput(){ |
---|
2 | var line = document.getElementById('uploadOption'); |
---|
3 | var newElement = document.createElement('TR'); |
---|
4 | var newElement2 = document.createElement('TD'); |
---|
5 | var newElement3 = document.createElement('TD'); |
---|
6 | newElement2.innerHTML = '<input onchange="javascript:addNewInput();" maxlength="255" name="upload_file[]" type="file">'; |
---|
7 | newElement3.innerHTML = '<input name="upload_comment[]" type="text">'; |
---|
8 | newElement.appendChild(newElement2); |
---|
9 | newElement.appendChild(newElement3); |
---|
10 | line.parentNode.appendChild(newElement); |
---|
11 | document.getElementById('show_upload_boxes').value +=1; |
---|
12 | } |
---|
13 | |
---|
14 | function sendFiles(){ |
---|
15 | cExecuteForm(document.getElementById('form_up'),handler_upload); |
---|
16 | document.getElementById('button_up').style.visibility = "hidden"; |
---|
17 | var line = document.getElementById('uploadOption'); |
---|
18 | line.parentNode.innerHTML = "<img src='"+templatePath+"images/progress.gif'>"; |
---|
19 | } |
---|
20 | |
---|
21 | function handler_upload(data){ |
---|
22 | window.location = "/index.php?menuaction=filemanager.uifilemanager.index"; |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.