scripts = [],\r
opts = {\r
container: $('#kiwi'),\r
- base_path: base_path\r
+ base_path: base_path,\r
+ settings_path: base_path + '/assets/settings.json'\r
};\r
\r
normalizeConsole();\r
}\r
\r
// Load application settings\r
- $.getJSON(base_path + '/assets/settings.json', function (data) {\r
+ $.getJSON(opts.settings_path, function (data) {\r
scripts = scripts.concat(data.scripts);\r
opts.server_settings = data.server_settings;\r
opts.client_plugins = data.client_plugins;\r
// The base url to the kiwi server\r
this.set('base_path', options[0].base_path ? options[0].base_path : '/kiwi');\r
\r
+ // Path for the settings.json file\r
+ this.set('settings_path', options[0].settings_path ?\r
+ options[0].settings_path :\r
+ this.get('base_path') + '/assets/settings.json'\r
+ );\r
+\r
// Any options sent down from the server\r
this.server_settings = options[0].server_settings || {};\r
this.translations = options[0].translations || {};\r
\r
\r
gw.on('kiwi:reconfig', function () {\r
- $.getJSON(that.get('base_path') + '/assets/settings.json', function (data) {\r
+ $.getJSON(that.get('settings_path'), function (data) {\r
that.server_settings = data.server_settings || {};\r
that.translations = data.translations || {};\r
});\r