#toolbar .panellist li img { width:1em; height:1em; top:7px; right:5px; position:absolute; }
#toolbar .panellist li img.icon { left:5px; top:2px; height:auto; width:auto; }
-
+#toolbar .panellist li.server span { background:url(../img/server_tab.png) no-repeat; padding-left:23px; }
+#toolbar .panellist li span { line-height:20px; vertical-align:middle; display:block; }
#status_message {
background: #FEEFB3; color: #9F6000;
border-bottom: 1px solid;
\r
isApplet: function () {\r
return this.applet ? true : false;\r
+ },\r
+\r
+ isServer: function () {\r
+ return this.server ? true : false;\r
}\r
});
\ No newline at end of file
\r
this.tabs_applets = $('ul.applets', this.$el);\r
this.tabs_msg = $('ul.channels', this.$el);\r
- window.t = this;\r
\r
kiwi.gateway.on('change:name', function (gateway, new_val) {\r
$('span', this.model.server.tab).text(new_val);\r
panelAdded: function (panel) {\r
// Add a tab to the panel\r
panel.tab = $('<li><span>' + (panel.get('title') || panel.get('name')) + '</span></li>');\r
+\r
+ if (panel.isServer()) {\r
+ panel.tab.addClass('server');\r
+ }\r
+\r
panel.tab.data('panel_id', panel.cid)\r
.appendTo(panel.isApplet() ? this.tabs_applets : this.tabs_msg);\r
\r
this.tabs_msg.children().removeClass('active');\r
\r
panel.tab.addClass('active');\r
- panel.tab.append('<img src="img/redcross.png" />');\r
+\r
+ // Only show the part image on non-server tabs\r
+ if (!panel.isServer()) {\r
+ panel.tab.append('<img src="img/redcross.png" />');\r
+ }\r
},\r
\r
tabClick: function (e) {\r