summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-09-12 15:53:05 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:27 +0200
commit5dfaa0c82d93a075d063cc24ea4345a5943b0b1f (patch)
treea0c03e93c63ba5da169f3531f01d3378f8067cf6 /core/js
parentf29b51682bc0be785e1a3e4e5901db3255e4a377 (diff)
downloadnextcloud-server-5dfaa0c82d93a075d063cc24ea4345a5943b0b1f.tar.gz
nextcloud-server-5dfaa0c82d93a075d063cc24ea4345a5943b0b1f.zip
mark url on click
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js5
-rw-r--r--core/js/sharedialoglinkshareview.js6
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;
},