about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorAlex Jordan <alex@strugee.net>2017-01-18 20:08:56 -0500
committerAlex Jordan <alex@strugee.net>2017-01-18 20:08:56 -0500
commit9e2841d8cb4ea32148fe53c94f87c65272dc8204 (patch)
tree692b4e4f3f97d205221a09c9e85146a59e44ff97 /scripts
parentaa3f32b03b07897967b07b04cac5739fdd7d11fa (diff)
downloadphp-xmpp-invitation-9e2841d8cb4ea32148fe53c94f87c65272dc8204.tar.gz
Select the XMPP URI when clicked
Diffstat (limited to 'scripts')
-rw-r--r--scripts/main.js3
1 files changed, 3 insertions, 0 deletions
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