\r
this.initializeGlobals = function () {\r
_kiwi.global.connections = this.connections;\r
- \r
+\r
+ _kiwi.global.panels = this.panels;\r
+ _kiwi.global.panels.applets = this.applet_panels;\r
+\r
_kiwi.global.components.Applet = _kiwi.model.Applet;\r
_kiwi.global.components.Panel =_kiwi.model.Panel;\r
};\r
\r
// Active panels / server\r
panels.active = this.connections.active_panel;\r
- panels.server = this.connections.active_connection.panels.server;\r
+ panels.server = this.connections.active_connection ?\r
+ this.connections.active_connection.panels.server :\r
+ null;\r
\r
return panels;\r
};\r