]> source.dussan.org Git - nextcloud-server.git/commit
Prevent scroll up when click on links in sharing dropdown
authorVincent Petry <pvince81@owncloud.com>
Mon, 7 Oct 2013 11:11:34 +0000 (13:11 +0200)
committerVincent Petry <pvince81@owncloud.com>
Mon, 7 Oct 2013 11:11:34 +0000 (13:11 +0200)
commit27579f36f672181f0927e4f8bb1c4fd04345c28b
treecac4b58543e6598d2204f92b87b9f37994ba2b9c
parent46fdb449a4eb87fe7ab2b0c2c96b61f52c37a150
Prevent scroll up when click on links in sharing dropdown

When clicking on a link that points to "#" in the sharing dropdown, and
the current view is scrolled down, the browser will scroll the page up
to the top (anchor behavior).

This fix cancels the click event when clicking on "unshare" link or
"show crud" link.
core/js/share.js