mark url on click

This commit is contained in:
Arthur Schiwon 2015-09-12 15:53:05 +02:00 committed by Vincent Petry
parent f29b51682b
commit 5dfaa0c82d
2 changed files with 6 additions and 5 deletions

View File

@ -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() {

View File

@ -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;
},