Martin Edenhofer 8 years ago
parent
commit
e04f9ee74d

+ 1 - 1
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

+ 1 - 0
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) ->

+ 4 - 4
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.