nextcloud/apps/files_sharing
Daniel Calviño Sánchez eb256b3ed5 Fix anchor change when clicking on sharing page menu
The share menu toggle and some share menu items included an 'href="#"'
attribute, so they were handled as internal links by the browser, which
changed the current anchor when they were clicked. However, there was no
real need to change the anchor in those cases, and it could interfere
with other apps (for example, the PDF viewer sets the current anchor to
"#pdfviewer" when it is shown and it hides itself when that anchor is
modified). According to the HTML 5 spec the "href" attribute is not
mandatory for "a" elements, so they were removed.

Other options would have been to change the elements from "a" to "div"
or something like that, but that would have required changes to the CSS
rules too, or to prevent the default event handling for those elements
through JavaScript, which would have been a workaround instead of the
proper solution.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-12-21 14:19:29 +01:00
..
appinfo Update license headers 2017-11-06 16:56:19 +01:00
composer Use proper authorative-autoloader for app autoloaders 2017-12-14 08:31:31 +01:00
css Show tha copy share link button properly inline 2017-12-13 10:32:13 +01:00
img Svgo optimization 2016-09-27 20:56:26 +02:00
js recycle SharedFileInfo values in fileInfo 2017-11-23 17:51:56 +01:00
l10n [tx-robot] updated from transifex 2017-12-10 01:10:25 +00:00
lib Also replace all other occurences 2017-12-18 20:57:11 +01:00
templates Fix anchor change when clicking on sharing page menu 2017-12-21 14:19:29 +01:00
tests Fix constructor spy in unit test with Sinon 4.1.3 2017-12-08 21:26:45 +01:00
list.php Fix apps/ 2016-07-21 18:13:57 +02:00
public.php Fix apps/ 2016-07-21 18:13:57 +02:00