diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-01-17 15:57:08 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-01-17 15:57:08 +0100 |
commit | 9e9794f4bbe2eaa276012eb3d231bc7612009bd4 (patch) | |
tree | c8524c8c1c155c88f25414c201efe3201c02407a | |
parent | 816fb94c8f5e29d6dd0c7044fa3c59eb3910ed7b (diff) |
Fix js TypeError on pages != upload_form
The jquery code won't produce an error message if there is no element
machting the search.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | data/js/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/js/script.js b/data/js/script.js index 5faad3899..4df973296 100644 --- a/data/js/script.js +++ b/data/js/script.js @@ -84,7 +84,7 @@ function fixedEncodeURIComponent (str) { } } - document.getElementById('file').addEventListener('change', checkFileUpload, false); + $('#file').bind('change', checkFileUpload); } }); |