This commit is contained in:
Martin Edenhofer 2016-07-25 22:09:21 +02:00
parent 99b1977a11
commit e04f9ee74d
3 changed files with 6 additions and 5 deletions

View file

@ -133,7 +133,7 @@ Source: https://github.com/davidbau/seedrandom
Copyright: 2014 David Bau. Copyright: 2014 David Bau.
License: MIT license License: MIT license
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
tinycolor-min.js tinycolor.js
Source: https://github.com/bgrins/TinyColor Source: https://github.com/bgrins/TinyColor
Copyright: Brian Grinstead Copyright: Brian Grinstead
License: MIT license License: MIT license

View file

@ -45,6 +45,7 @@ class _storeSingleton
catch e catch e
@clear() @clear()
App.Log.error 'App.SessionStorage', 'Session storage error!', e App.Log.error 'App.SessionStorage', 'Session storage error!', e
sessionStorage.setItem(key, JSON.stringify(value))
# get item # get item
get: (key) -> get: (key) ->

View file

@ -141,10 +141,10 @@ class _i18nSingleton extends Spine.Module
@mapString = {} @mapString = {}
App.Ajax.request( App.Ajax.request(
id: 'i18n-set-' + @locale, id: "i18n-set-#{@locale}"
type: 'GET', type: 'GET'
url: App.Config.get('api_path') + '/translations/lang/' + @locale, url: "#{App.Config.get('api_path')}/translations/lang/#{@locale}"
async: false, async: false
success: (data, status, xhr) => success: (data, status, xhr) =>
# total count of translations as ref. # total count of translations as ref.