syncthing/gui/default
tomasz1986 5baf5fedb5
gui: Replace JS select-on-click with CSS user-select (fixes #3868) (#8544)
Currently, a custom JS script is used to select the whole device ID on
click. However, the current script isn't compatible with all browsers
(and in IE in particular), making it impossible to select the ID in them
at all. Additionally, the same functionality is already available in CSS
with no such drawbacks, as the whole selection process is handled by the
Web browser natively, which is lightweight and does not require custom
code.

Thus, remove the currently used JS script completely, replacing it with
a new CSS class that can be added to an element when required. If the
browser does not support the CSS, the user can still select the element
manually, which makes it safer than the current behaviour that can block
the user from being able to select the element at all.

Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
2022-09-20 11:37:34 +02:00
..
assets gui: Replace JS select-on-click with CSS user-select (fixes #3868) (#8544) 2022-09-20 11:37:34 +02:00
syncthing gui: Replace JS select-on-click with CSS user-select (fixes #3868) (#8544) 2022-09-20 11:37:34 +02:00
vendor all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
index.html gui: Replace JS select-on-click with CSS user-select (fixes #3868) (#8544) 2022-09-20 11:37:34 +02:00
modal.html gui: Update to Font Awesome v5 (#4889) 2018-05-24 19:59:32 +01:00