Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-02-05 14:17:04 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-02-05 14:17:04 +0400
commita4895e4df111470a433520afc08a19961c4405e2 (patch)
tree185b2de5cb19bd4feae4e3e9cf132da4ca71da91 /apps
parenta9a92892be7cbb7c0b9f5c9819203e2f6c724ad6 (diff)
focus link text only on click in the input field - closes #6817
Diffstat (limited to 'apps')
-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();
+ });
});