From 1352b5770448d5676b21b4cedf96d1f9674ad005 Mon Sep 17 00:00:00 2001 From: atomaka Date: Mon, 7 Nov 2011 22:39:43 -0500 Subject: [PATCH] Highlight entire link box when clicked for easy copying. --- js/upload.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/upload.js b/js/upload.js index 728762c..c2e8d0b 100644 --- a/js/upload.js +++ b/js/upload.js @@ -20,6 +20,10 @@ $(function(){ } else { $.data(file).addClass('done'); $.data(file).find('.linkBox').val(response.file); + $.data(file).find('.linkBox').click(function() { + this.focus(); + this.select(); + }); } // response is the JSON object that post_file.php returns },