added next view shortcut to linux
This commit is contained in:
parent
cf4e3386e7
commit
3cda481255
4 changed files with 35 additions and 2 deletions
|
@ -169,6 +169,29 @@ function(HostApp, Paths, Cache) {
|
|||
img.src = img.src_active;
|
||||
}
|
||||
|
||||
Sidebar.prototype.showContentForNext = function() {
|
||||
|
||||
var parts = [
|
||||
"timeline",
|
||||
"mentions",
|
||||
"conversation",
|
||||
"entityProfile",
|
||||
"search"
|
||||
];
|
||||
|
||||
for (var i = 0; i < parts.length; i++) {
|
||||
var part = parts[i];
|
||||
var img = this.menu[part].getElementsByTagName("img")[0];
|
||||
if (img.src.endsWith(img.src_active)) {
|
||||
var next = parts[(i+1)%parts.length];
|
||||
this.showContentFor(bungloo[next], this.menu[next]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Sidebar.prototype.setUnreadMentions = function(count) {
|
||||
this.unreadMentionsSpan.innerHTML = count == 0 ? "" : count;
|
||||
if (count > 0) {
|
||||
|
|
Reference in a new issue