Client: Apply default settings before applying any others
authorDarren <darren@darrenwhitlen.com>
Fri, 19 Jul 2013 21:07:16 +0000 (22:07 +0100)
committerDarren <darren@darrenwhitlen.com>
Fri, 19 Jul 2013 21:07:16 +0000 (22:07 +0100)
client/assets/src/models/application.js

index 60d7ee366bf584ee916f65e75343dda91cb24753..c2bf0fea4201650d6abdd2ee1da202c6adc9b69f 100644 (file)
@@ -31,6 +31,11 @@ _kiwi.model.Application = function () {
 \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
+            }\r
         };\r
 \r
 \r
@@ -48,7 +53,6 @@ _kiwi.model.Application = function () {
 \r
             this.initializeClient();\r
             this.initializeGlobals();\r
-            this.applyDefaultClientSettings(this.server_settings.client.settings);\r
 \r
             this.view.barsHide(true);\r
 \r