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.
License: MIT license
-----------------------------------------------------------------------------
tinycolor-min.js
tinycolor.js
Source: https://github.com/bgrins/TinyColor
Copyright: Brian Grinstead
License: MIT license

View file

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

View file

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