summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialoglinkshareview.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/sharedialoglinkshareview.js')
-rw-r--r--core/js/sharedialoglinkshareview.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index b94f1c3e70b..3e3ef2d5029 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -122,6 +122,11 @@
}
},
+ onLinkTextClick: function() {
+ this.focus();
+ this.select();
+ },
+
render: function() {
var linkShareTemplate = this.template();
@@ -172,6 +177,7 @@
}));
this.$el.find('#linkCheckbox').change(this.onLinkCheckBoxChange);
+ this.$el.find('#linkText').click(this.onLinkTextClick);
return this;
},