From 85b2f129b2bfdc34869fa362cb24fe7a55bd6bca Mon Sep 17 00:00:00 2001 From: ozhozh Date: Fri, 9 Oct 2009 21:19:41 +0000 Subject: [PATCH] JS minor tweak git-svn-id: http://yourls.googlecode.com/svn/trunk@223 12232710-3e20-11de-b438-597f59cd7555 --- js/insert.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/insert.js b/js/insert.js index ac585a0..c7faddb 100644 --- a/js/insert.js +++ b/js/insert.js @@ -3,6 +3,12 @@ $(document).ready(function(){ $('#add-url, #add-keyword').keyup(function(e){ if (e.keyCode == 13) {add();} } ); reset_url(); $('#new_url_form').attr('action', 'javascript:add();'); + + $('input.text').click(function(){ + $(this).select(); + }); + + if ($("#tblUrl").tablesorter && $("#tblUrl tr.nourl_found").length != 1) { var order = {'id':0, 'url':1, 'timestamp':2, 'ip':3, 'clicks':4}; var order_by = {'asc':0, 'desc':1}; @@ -184,7 +190,7 @@ function increment() { }); } -// Get +// Get query string function query_string( key ) { default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); -- 2.45.0