diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index b5b0de59e..7033d8e36 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -516,3 +516,7 @@ html[lang="ja"] i, html[lang|="ko"] i { font-style: normal; } + +.select-on-click { + user-select: all; +} diff --git a/gui/default/index.html b/gui/default/index.html index 08266f50e..664c8f37f 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -994,7 +994,6 @@ - diff --git a/gui/default/syncthing/core/selectOnClickDirective.js b/gui/default/syncthing/core/selectOnClickDirective.js deleted file mode 100644 index a3802b58b..000000000 --- a/gui/default/syncthing/core/selectOnClickDirective.js +++ /dev/null @@ -1,14 +0,0 @@ -angular.module('syncthing.core') - .directive('selectOnClick', function ($window) { - return { - link: function (scope, element, attrs) { - element.on('click', function () { - var selection = $window.getSelection(); - var range = document.createRange(); - range.selectNodeContents(element[0]); - selection.removeAllRanges(); - selection.addRange(range); - }); - } - }; - }); diff --git a/gui/default/syncthing/device/idqrModalView.html b/gui/default/syncthing/device/idqrModalView.html index 9587b04b4..24f8da0e7 100644 --- a/gui/default/syncthing/device/idqrModalView.html +++ b/gui/default/syncthing/device/idqrModalView.html @@ -1,6 +1,6 @@ - {{currentDevice.deviceID}} + {{currentDevice.deviceID}}