From 9e2841d8cb4ea32148fe53c94f87c65272dc8204 Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Wed, 18 Jan 2017 20:08:56 -0500 Subject: Select the XMPP URI when clicked --- scripts/main.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/main.js b/scripts/main.js index 242cd54..81771e5 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -90,6 +90,9 @@ // functionality load_clients(); window.addEventListener("hashchange", rehash, false); + document.getElementById("url_in").addEventListener("focus", function(event) { + event.target.select(); + }); } // Wait for the DOM to be ready -- cgit 1.4.1