diff options
| author | Alex Jordan <alex@strugee.net> | 2017-01-18 20:08:56 -0500 |
|---|---|---|
| committer | Alex Jordan <alex@strugee.net> | 2017-01-18 20:08:56 -0500 |
| commit | 9e2841d8cb4ea32148fe53c94f87c65272dc8204 (patch) | |
| tree | 692b4e4f3f97d205221a09c9e85146a59e44ff97 /scripts/main.js | |
| parent | aa3f32b03b07897967b07b04cac5739fdd7d11fa (diff) | |
| download | php-xmpp-invitation-9e2841d8cb4ea32148fe53c94f87c65272dc8204.tar.gz | |
Select the XMPP URI when clicked
Diffstat (limited to 'scripts/main.js')
| -rw-r--r-- | scripts/main.js | 3 |
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 |
