#16 — upload button disappears (opera/firefox)
| State | Resolved |
|---|---|
| Version: |
—
|
| Area | User interface |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | (anonymous) |
| Submitted on | 2007-07-06 |
| Responsible | Michael Trachtman |
| Target release: |
—
|
Last modified on
2007-07-21
by
Michael Trachtman
the upload files button disappears in opera/firefox if you click cancel in the windows open file dialog. you have to reload the site first, so that it shows up again.
greetings marc
greetings marc
Added by
Michael Trachtman
on
2007-07-18 02:04 PM
The button disappears because the button is explicitly hidden by z3c.widget.flashupload:
In z3c/widget/flashupload/resources/upload.js:
function z3cFlashUploadDisableBrowseButton(){
document.getElementById("flash.start.browsing").style.visibility = "hidden";
document.getElementById("flash.start.browsing").disabled = "disabled";
}
If the first line is commented out, the button will stay but clicking it after canceling the Select Files dialog will not bring the dialog back up.
In z3c/widget/flashupload/resources/upload.js:
function z3cFlashUploadDisableBrowseButton(){
document.getElementById("flash.start.browsing").style.visibility = "hidden";
document.getElementById("flash.start.browsing").disabled = "disabled";
}
If the first line is commented out, the button will stay but clicking it after canceling the Select Files dialog will not bring the dialog back up.
Added by
Michael Trachtman
on
2007-07-18 02:13 PM
Obviously, commenting out the second line restores the desired functionality, i.e. it allows you to click and browse again.
The question is: why was it disabled initially? Issues with other browsers? Some other use case that is not obvious?
The question is: why was it disabled initially? Issues with other browsers? Some other use case that is not obvious?
Added by
Michael Trachtman
on
2007-07-20 01:07 PM
Issue state:
unconfirmed → open
Responsible manager:
(UNASSIGNED) → miketrachtman
We can override the z3cFlashUploadDisableBrowseButton() javascript function in ploneflashupload.js; this keeps our change outside of the z3c.widget.flashupload.
Added by
Michael Trachtman
on
2007-07-21 01:13 PM
Issue state:
open → resolved
Added a javascript function override in ploneflashupload.js to leave the button intact.