From 5dfaa0c82d93a075d063cc24ea4345a5943b0b1f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sat, 12 Sep 2015 15:53:05 +0200 Subject: [PATCH] mark url on click --- core/js/share.js | 5 ----- core/js/sharedialoglinkshareview.js | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/js/share.js b/core/js/share.js index 6581c40128..4b1e773c1a 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -956,11 +956,6 @@ $(document).ready(function() { permissions); }); - $(document).on('click', '#dropdown #linkText', function() { - $(this).focus(); - $(this).select(); - }); - // Handle the Allow Public Upload Checkbox $(document).on('click', '#sharingDialogAllowPublicUpload', function() { diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index b94f1c3e70..3e3ef2d502 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; },