Merge pull request #1816 from MaxLeiter/fix-network-context

Proper network icon in context menu
This commit is contained in:
Jérémie Astori 2017-12-09 18:17:38 -05:00 committed by GitHub
commit a8fb892873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,7 @@ kbd {
.context-menu-close::before { content: "\f00d"; /* http://fontawesome.io/icon/times/ */ } .context-menu-close::before { content: "\f00d"; /* http://fontawesome.io/icon/times/ */ }
.context-menu-list::before { content: "\f03a"; /* http://fontawesome.io/icon/list/ */ } .context-menu-list::before { content: "\f03a"; /* http://fontawesome.io/icon/list/ */ }
.context-menu-network::before,
#sidebar .chan.lobby::before, #sidebar .chan.lobby::before,
#chat .lobby .title::before { content: "\f0a0"; /* http://fontawesome.io/icon/hdd-o/ */ } #chat .lobby .title::before { content: "\f0a0"; /* http://fontawesome.io/icon/hdd-o/ */ }

View File

@ -84,7 +84,7 @@ $(function() {
}); });
} else if (target.hasClass("chan")) { } else if (target.hasClass("chan")) {
output = templates.contextmenu_item({ output = templates.contextmenu_item({
class: "chan", class: target.hasClass("lobby") ? "network" : "chan",
text: target.data("title"), text: target.data("title"),
data: target.data("target"), data: target.data("target"),
}); });