dependency update

This commit is contained in:
2016-06-01 14:18:10 +02:00
parent e69b783eb0
commit 36178526e3
20 changed files with 258 additions and 243 deletions
@@ -1,4 +1,4 @@
App.CurrencyHelper = Ember.Helper.helper (params, options)->
amount = params[0]
amount = 0.0 if isNaN(amount) || amount== '' || amount == null
new Handlebars.SafeString('€ ' + parseFloat(amount).toFixed(2))
"€ #{parseFloat(amount).toFixed(2)}".htmlSafe()
@@ -5,4 +5,4 @@ App.ImageTagHelper = Ember.Helper.helper (params, options)->
extra_attributes = ''
extra_attributes += " width=\"#{options.width}\"" if options.width
extra_attributes += " height=\"#{options.height}\"" if options.height
new Handlebars.SafeString "<img src=\"#{image_path}\" alt=\"#{alt}\" title=\"#{alt}\" #{extra_attributes}>"
"<img src=\"#{image_path}\" alt=\"#{alt}\" title=\"#{alt}\" #{extra_attributes}>".htmlSafe()
@@ -1,4 +1,4 @@
App.StateHelper = Ember.Helper.helper (params, options)->
[subject, state] = params
path = "state.#{subject}.#{state}"
new Handlebars.SafeString("<span data-t=\"#{path}\">#{t(path)}</span>")
"<span data-t=\"#{path}\">#{t(path)}</span>".htmlSafe()
@@ -7,4 +7,4 @@ App.TimeHelper = Ember.Helper.helper (params, options)->
else
format_string = ''
tag = if options.bare then iso else $("<span data-time=\"#{iso}\" #{format_string}></span>").text(moment(iso).format(options.format || 'dd D MMM hh:mm')).get(0).outerHTML
new Handlebars.SafeString tag
tag.htmlSafe()
@@ -1,2 +1,2 @@
App.VersionHelper = Ember.Helper.helper (params, options)->
new Handlebars.SafeString $app_version
String($app_version).htmlSafe()