mirror of
https://github.com/flarum/core.git
synced 2025-07-31 21:50:50 +02:00
Show permalink as a link on touch devices
This commit is contained in:
@@ -24,7 +24,7 @@ export default Ember.Component.extend({
|
||||
// When the dropdown menu is shown, select the contents of the permalink
|
||||
// input so that the user can quickly copy the URL.
|
||||
var component = this;
|
||||
this.$('a').click(function() {
|
||||
this.$('.dropdown-toggle').click(function() {
|
||||
setTimeout(function() { component.$('.permalink').select(); }, 1);
|
||||
});
|
||||
|
||||
@@ -32,5 +32,7 @@ export default Ember.Component.extend({
|
||||
this.$('.permalink').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
this.set('touch', 'ontouchstart' in document.documentElement);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user