diff options
-rw-r--r-- | core/js/share.js | 5 | ||||
-rw-r--r-- | 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 6581c401281..4b1e773c1ac 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 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; }, |