From de5d925154b34e5045fadda77e05b461cebcf3d3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 8 Sep 2017 15:07:25 +0200 Subject: [PATCH] autoselect user href in settings --- www/settings/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/www/settings/main.js b/www/settings/main.js index 45d64158f..a28fca920 100644 --- a/www/settings/main.js +++ b/www/settings/main.js @@ -75,9 +75,7 @@ define([ var userHref = Cryptpad.getUserHrefFromKeys(accountName, publicKey); var $pubLabel = $('', {'class': 'label'}) .text(Messages.settings_publicSigningKey); - var $pubKey = $('', {type: 'text', readonly: true}) - .val(userHref); - $key.append($pubLabel).append($pubKey); + $key.append($pubLabel).append(Cryptpad.dialog.selectable(userHref)); } return $div;