source: extensions/upload_form/include/upload.js @ 4829

Last change on this file since 4829 was 4739, checked in by plg, 15 years ago

initial revision for the new upload form

File size: 490 bytes
Line 
1var upload_limit = 10;
2var upload_slots = 1;
3
4function 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.