summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-01-17 15:57:08 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-01-17 15:57:08 +0100
commit9e9794f4bbe2eaa276012eb3d231bc7612009bd4 (patch)
treec8524c8c1c155c88f25414c201efe3201c02407a /data
parent816fb94c8f5e29d6dd0c7044fa3c59eb3910ed7b (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>
Diffstat (limited to 'data')
-rw-r--r--data/js/script.js2
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);
}
});