app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee in alchemy_cms-3.2.1 vs app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee in alchemy_cms-3.3.0.rc1
- old
+ new
@@ -1,10 +1,10 @@
class window.Alchemy.CharCounter
constructor: (field) ->
@$field = $(field)
@max_chars = @$field.data('alchemy-char-counter')
- @text = Alchemy._t('allowed_chars', @max_chars)
+ @text = Alchemy.t('allowed_chars', @max_chars)
@$display = $('<small class="alchemy-char-counter"/>')
@$field.after(@$display)
countChars.call(this)
@$field.keyup =>
countChars.call(this)