Last change
on this file since 8194 was
4895,
checked in by plg, 15 years ago
|
feature 1438: switch between uploadify and HTML form
feature 1435 related: change the order to display the "who can see these
photos?" options. It's just a test, we're discussing about usability on this
field.
graphical design: distinguish the 3 main fields (category/privacy/files), no
use of the table anymore to have a smaller width. One goal was to see the
"Upload" button when the form opens for the first time in a 1024x768 browser.
|
File size:
490 bytes
|
Line | |
---|
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='60' />"; |
---|
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.