Last change
on this file since 4739 was
4739,
checked in by plg, 14 years ago
|
initial revision for the new upload form
|
File size:
490 bytes
|
Rev | Line | |
---|
[4739] | 1 | var upload_limit = 10; |
---|
| 2 | var upload_slots = 1; |
---|
| 3 | |
---|
| 4 | function UpdateUploadSlots() |
---|
| 5 | { |
---|
| 6 | upload_slots++; |
---|
| 7 | |
---|
| 8 | // if (upload_slots <= upload_limit) { |
---|
| 9 | if (upload_slots <= upload_limit) { |
---|
| 10 | new_slot = document.createElement("p"); |
---|
| 11 | new_slot.innerHTML = "<input class='file' type='file' name='image_upload[]' size='70' />"; |
---|
| 12 | document.getElementById("uploadBoxes").appendChild(new_slot); |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | if (upload_slots >= upload_limit) { |
---|
| 16 | document.getElementById("addUploadBox").innerHTML = ''; |
---|
| 17 | } |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.