Panel list fix
authorDarren <darren@darrenwhitlen.com>
Sat, 26 Oct 2013 16:30:07 +0000 (17:30 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 26 Oct 2013 16:30:07 +0000 (17:30 +0100)
client/assets/src/models/application.js
client/assets/src/views/networktabs.js

index 50d7b58d5419d83b259c28621b62b9b235048a4f..05a282b602cbc18922fa833c00139dd9029b319a 100644 (file)
@@ -36,9 +36,6 @@ _kiwi.model.Application = function () {
             // Best guess at where the kiwi server is\r
             this.detectKiwiServer();\r
 \r
-            // Takes instances of model_network\r
-            this.connections = new _kiwi.model.NetworkPanelList();\r
-\r
             // Set any default settings before anything else is applied\r
             if (this.server_settings && this.server_settings.client && this.server_settings.client.settings) {\r
                 this.applyDefaultClientSettings(this.server_settings.client.settings);\r
@@ -108,6 +105,9 @@ _kiwi.model.Application = function () {
         this.initializeClient = function () {\r
             this.view = new _kiwi.view.Application({model: this, el: this.get('container')});\r
 \r
+            // Takes instances of model_network\r
+            this.connections = new _kiwi.model.NetworkPanelList();\r
+\r
             // Applets panel list\r
             this.applet_panels = new _kiwi.model.PanelList();\r
             this.applet_panels.view.$el.addClass('panellist applets');\r
index 10ae2f53afb265a925aa01aed0020a9a966d5bb5..1e756920d0bf2883decaefd807732c5538a8e7aa 100644 (file)
@@ -7,7 +7,7 @@ _kiwi.view.NetworkTabs = Backbone.View.extend({
         this.model.on('add', this.networkAdded, this);
         this.model.on('remove', this.networkRemoved, this);
 
-        this.$el.appendTo($('#kiwi .tabs'));
+        this.$el.appendTo(_kiwi.app.view.$el.find('.tabs'));
     },
 
     networkAdded: function(network) {