\r
\r
this.bindGatewayCommands = function (gw) {\r
+ var that = this;\r
+\r
gw.on('onconnect', function (event) {\r
that.view.barsShow();\r
});\r
});\r
})();\r
\r
+ gw.on('kiwi:reconfig', function () {\r
+ $.getJSON(that.get('base_path') + '/assets/settings.json', function (data) {\r
+ console.log(data);\r
+ if (typeof data.kiwi_server !== 'undefined') {\r
+ _kiwi.app.kiwi_server = data.kiwi_server;\r
+ }\r
+\r
+ that.server_settings = data.server_settings || {};\r
+ that.translations = data.translations || {};\r
+ });\r
+ });\r
};\r
\r
\r
+config.on('loaded', function () {
+ for (var client in global.clients.clients) {
+ global.clients.clients[client].sendKiwiCommand('reconfig');
+ }
+});
+
+
/*
* Identd server