From 9e9794f4bbe2eaa276012eb3d231bc7612009bd4 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 17 Jan 2013 15:57:08 +0100 Subject: 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 --- data/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/js') 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); } }); -- cgit v1.2.3-24-g4f1b