mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
UX: Add keyboard bidning for incoming/updated topics
Fixed the selector used to gain access to the clickable div
This commit is contained in:
parent
5ca96e741d
commit
8033972536
1 changed files with 1 additions and 6 deletions
|
@ -35,6 +35,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
'm r': 'div.notification-options li[data-id="1"] a', // mark topic as regular
|
||||
'm t': 'div.notification-options li[data-id="2"] a', // mark topic as tracking
|
||||
'm w': 'div.notification-options li[data-id="3"] a', // mark topic as watching
|
||||
'.': '.alert.alert-info.clickable', // show incoming/updated topics
|
||||
'n': '#user-notifications', // open notifications menu
|
||||
'o,enter': '.topic-list tr.selected a.title', // open selected topic
|
||||
'shift+r': '#topic-footer-buttons button.create', // reply to topic
|
||||
|
@ -51,7 +52,6 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
'u': 'goBack',
|
||||
'`': 'nextSection',
|
||||
'~': 'prevSection',
|
||||
'.': 'showIncomingUpdatedTopics',
|
||||
'/': 'showSearch',
|
||||
'=': 'showSiteMap', // open site map menu
|
||||
'p': 'showCurrentUser', // open current user menu
|
||||
|
@ -134,11 +134,6 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
}
|
||||
},
|
||||
|
||||
showIncomingUpdatedTopics: function() {
|
||||
$('.alert .alert-info .clickable').click();
|
||||
return false;
|
||||
},
|
||||
|
||||
toggleProgress: function() {
|
||||
Discourse.__container__.lookup('controller:topic-progress').send('toggleExpansion', {highlight: true});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue