[Pkg-owncloud-commits] [owncloud] 47/145: focus link text only on click in the input field - closes #6817

David Prévot taffit at moszumanska.debian.org
Wed Feb 26 16:27:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a4895e4df111470a433520afc08a19961c4405e2
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Wed Feb 5 11:17:04 2014 +0100

    focus link text only on click in the input field - closes #6817
---
 apps/files_sharing/js/public.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 31572f5..d95f634 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();
+	});
 
 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list