}\r
#kiwi .windowlist .active, #kiwi .utilityviewlist .active { padding-right:23px; }\r
#kiwi .windowlist .highlight, #kiwi .utilityviewlist .highlight {\r
- background-color: #990000;\r
+ background: #990000;\r
font-weight: bold;\r
}\r
-#kiwi .windowlist .activity, #kiwi .utilityviewlist .activity { font-weight: bold; background-color: #009900; }\r
+#kiwi .windowlist .activity, #kiwi .utilityviewlist .activity { font-weight: bold; background: #009900; }\r
\r
#kiwi .windowlist ul li img, #kiwi .utilityviewlist ul li img { width:1em; height:1em; top:7px; right:5px; position:absolute; }\r
#kiwi .windowlist ul li img.icon, #kiwi .utilityviewlist ul li img.icon { left:5px; top:2px; height:auto; width:auto;}\r
{
name: "highlight",
onaddmsg: function (event, opts) {
+ var tab = Tabviews.getTab(event.tabview.toLowerCase());
+
+ // If we have a highlight...
if (event.msg.toLowerCase().indexOf(kiwi.gateway.nick.toLowerCase()) > -1) {
- if (kiwi.front.cur_channel.name.toLowerCase() !== kiwi.front.tabviews[event.tabview.toLowerCase()].name) {
- kiwi.front.tabviews[event.tabview].highlight();
+ if (Tabview.getCurrentTab() !== tab) {
+ tab.highlight();
}
- if (kiwi.front.isChannel(kiwi.front.tabviews[event.tabview].name)) {
+ if (kiwi.front.isChannel(tab.name)) {
event.msg = '<span style="color:red;">' + event.msg + '</span>';
}
}
- if (
- !kiwi.front.isChannel(kiwi.front.tabviews[event.tabview].name) && kiwi.front.tabviews[event.tabview].name !== "server"
- && kiwi.front.cur_channel.name.toLowerCase() !== kiwi.front.tabviews[event.tabview.toLowerCase()].name
+ // If it's a PM, highlight
+ if (!kiwi.front.isChannel(tab.name) && tab.name !== "server"
+ && Tabview.getCurrentTab().name.toLowerCase() !== tab.name
) {
- kiwi.front.tabviews[event.tabview].highlight();
+ tab.highlight();
}
return event;