diff --git a/scripts/image_upload.js b/scripts/image_upload.js index e3ac9642..049ab255 100644 --- a/scripts/image_upload.js +++ b/scripts/image_upload.js @@ -120,8 +120,9 @@ settingsLoadedEvent.addHandler(function() return false; }); - $("#fileChooserLink").click(function() { + $("#fileChooserLink").click(function(e) { $("#fileUploadInput").click(); + e.preventDefault(); }); // debounce on keyup (1.5s) for url text input