Skip to content

Commit

Permalink
Don't scroll to top after clicking "Choose a file" link in image uplo…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
electroly committed Jul 10, 2019
1 parent 805a05b commit 3c9e937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/image_upload.js
Expand Up @@ -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
Expand Down

0 comments on commit 3c9e937

Please sign in to comment.