Cleanup.
This commit is contained in:
parent
99b1977a11
commit
e04f9ee74d
3 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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) ->
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue