projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abee178
)
Extend upload error condition for new HTML5 features
author
Joey Schulze
<joey@infodrom.org>
Mon, 12 Mar 2012 23:51:56 +0000
(
00:51
+0100)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 12 Mar 2012 23:51:56 +0000
(
00:51
+0100)
lib/functions.js
patch
|
blob
|
history
diff --git
a/lib/functions.js
b/lib/functions.js
index
905eeb7
..
ecf9abd
100644
(file)
--- a/
lib/functions.js
+++ b/
lib/functions.js
@@
-82,7
+82,8
@@
function ajax_form_submit(func,form,oncomplete)
if (element.nodeName.toLowerCase() == 'input' &&
element.type.toLowerCase() == 'file') {
- if (typeof element.files[0].getAsBinary != 'function') {
+ if (typeof element.files[0].getAsBinary != 'function' &&
+ typeof window.FileReader == 'undefined') {
error('Upload von Dateien nicht möglich');
alert("Upload von Dateien in dieser Version von Firefox nicht möglich.\n" +
"Bitte verwenden Sie Firefox in der Version 3.5.");