set oml.version

This commit is contained in:
j 2016-01-10 19:23:29 +05:30
parent cda61c5560
commit cc3a394dd5
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ def init(data):
config = {}
response['config'] = config
response['user'] = deepcopy(config['user'])
response['version'] = settings.MINOR_VERSION
if settings.preferences:
response['user']['preferences'] = settings.preferences
response['user']['id'] = settings.USER_ID

View File

@ -35,7 +35,8 @@
Ox.extend(oml, {
$ui: {},
config: data.config,
user: data.user
user: data.user,
version: data.version
});
['preferences', 'ui'].forEach(function(key) {
// make sure all valid settings are present