From 13cf7bf535b4758b0a159126aeefb0044585b0d0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 26 Nov 2012 06:05:26 +0100 Subject: [PATCH] Fixed usage if no translations has been loaded till now. --- app/assets/javascripts/app/lib/app_post/i18n.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/app_post/i18n.js.coffee b/app/assets/javascripts/app/lib/app_post/i18n.js.coffee index 55f5becb9..dc5eee470 100644 --- a/app/assets/javascripts/app/lib/app_post/i18n.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/i18n.js.coffee @@ -31,6 +31,7 @@ class _Singleton extends Spine.Module constructor: -> @map = {} + @timestampFormat = 'yyyy-mm-dd HH:MM' # observe if text has been translated $('body') @@ -80,7 +81,6 @@ class _Singleton extends Spine.Module set: ( locale ) -> @locale = locale - @timestampFormat = 'yyyy-mm-dd HH:MM' @map = {} App.Com.ajax( id: 'i18n-set-' + locale,