diff --git a/LICENSE-3RD-PARTY.txt b/LICENSE-3RD-PARTY.txt index 701e8be8a..a2f6351b9 100644 --- a/LICENSE-3RD-PARTY.txt +++ b/LICENSE-3RD-PARTY.txt @@ -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 diff --git a/app/assets/javascripts/app/lib/app_init/session_storage.coffee b/app/assets/javascripts/app/lib/app_init/session_storage.coffee index 47fcdeb55..7d7fbc851 100644 --- a/app/assets/javascripts/app/lib/app_init/session_storage.coffee +++ b/app/assets/javascripts/app/lib/app_init/session_storage.coffee @@ -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) -> diff --git a/app/assets/javascripts/app/lib/app_post/i18n.coffee b/app/assets/javascripts/app/lib/app_post/i18n.coffee index dbf8af22a..a3ead5106 100644 --- a/app/assets/javascripts/app/lib/app_post/i18n.coffee +++ b/app/assets/javascripts/app/lib/app_post/i18n.coffee @@ -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.