mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Allow users to tab to the activity column
This commit is contained in:
parent
db4abe76db
commit
c5d6f6a034
@ -37,7 +37,7 @@ export default Ember.Component.extend({
|
|||||||
}.property('bumpedAt', 'createdAt'),
|
}.property('bumpedAt', 'createdAt'),
|
||||||
|
|
||||||
render: function(buffer) {
|
render: function(buffer) {
|
||||||
buffer.push(Discourse.Formatter.autoUpdatingRelativeAge(this.get('bumpedAt')));
|
buffer.push("<a href>" + Discourse.Formatter.autoUpdatingRelativeAge(this.get('bumpedAt')) + "</a>");
|
||||||
},
|
},
|
||||||
|
|
||||||
click: function() {
|
click: function() {
|
||||||
@ -45,12 +45,14 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
if (Discourse.Mobile.mobileView) {
|
if (Discourse.Mobile.mobileView) {
|
||||||
Discourse.URL.routeTo(topic.get('lastPostUrl'));
|
Discourse.URL.routeTo(topic.get('lastPostUrl'));
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sendAction('action', {
|
this.sendAction('action', {
|
||||||
topic: topic,
|
topic: topic,
|
||||||
position: this.$('span').position()
|
position: this.$('span').position()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<button {{action enterTop}} class='btn full no-text'>
|
<button {{action enterTop}} class='btn full no-text jump-top'>
|
||||||
<i class='fa fa-caret-up'></i> {{topDate}}
|
<i class='fa fa-caret-up'></i> {{topDate}}
|
||||||
</button>
|
</button>
|
||||||
<button {{action enterBottom}} class='btn full no-text jump-bottom'>
|
<button {{action enterBottom}} class='btn full no-text jump-bottom'>
|
||||||
|
@ -47,4 +47,10 @@ export default Ember.View.extend({
|
|||||||
this.appEvents.on('dom:clean', this, '_cleanUp');
|
this.appEvents.on('dom:clean', this, '_cleanUp');
|
||||||
}.on('didInsertElement'),
|
}.on('didInsertElement'),
|
||||||
|
|
||||||
|
keyDown: function(e) {
|
||||||
|
if (e.which === 27) {
|
||||||
|
this._cleanUp();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user