summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-23 01:08:42 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-23 01:08:42 +0100
commitade726ad324efb16c65055ce2dd5683c3109c8d8 (patch)
tree2398061d1a0904eab9e1e1d50f98b5699340b604
parentf950ce82ae137977eeca5babe69d732ca55cbeaa (diff)
downloadnextcloud-server-ade726ad324efb16c65055ce2dd5683c3109c8d8.tar.gz
nextcloud-server-ade726ad324efb16c65055ce2dd5683c3109c8d8.zip
focus link text only on click in the input field - closes #6817
-rw-r--r--apps/files_sharing/js/public.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 31572f5ccf5..d95f6348ac0 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -56,6 +56,9 @@ $(document).ready(function() {
};
});
- $('#directLink').focus();
+ $(document).on('click', '#directLink', function() {
+ $(this).focus();
+ $(this).select();
+ });
});