Sha256: e10285504f95d9d97d9f38b2b4130f563250d1189da0de66f73e39c06e38d96c

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"$alchemy/alchemy.char_counter.js;FI"
pathname;TI"y/Users/tvd/.rvm/gems/ruby-2.1.2/gems/alchemy_cms-3.0.0/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+9ÚþSI"length;Ti¦I"digest;TI"%96bcba02cf14b1a97579208f7fca1755;FI"source;TI"¦(function() {
  window.Alchemy.CharCounter = (function() {
    var countChars;

    function CharCounter(field) {
      this.$field = $(field);
      this.max_chars = this.$field.data('alchemy-char-counter');
      this.text = Alchemy._t('allowed_chars', this.max_chars);
      this.$display = $('<small class="alchemy-char-counter"/>');
      this.$field.after(this.$display);
      countChars.call(this);
      this.$field.keyup((function(_this) {
        return function() {
          countChars.call(_this);
          return true;
        };
      })(this));
    }

    countChars = function() {
      var char_length;
      char_length = this.$field.val().length;
      this.$display.removeClass('too-long');
      this.$display.text("" + char_length + " " + this.text);
      if (char_length > this.max_chars) {
        return this.$display.addClass('too-long');
      }
    };

    return CharCounter;

  })();

}).call(this);
;TI"dependency_digest;TI"%ecd864175181cb548a69589e3ebae1bb;FI"required_paths;T[I"y/Users/tvd/.rvm/gems/ruby-2.1.2/gems/alchemy_cms-3.0.0/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee;FI"dependency_paths;T[{I"	path;TI"y/Users/tvd/.rvm/gems/ruby-2.1.2/gems/alchemy_cms-3.0.0/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee;FI"
mtime;TI"2014-08-28T09:28:57+02:00;TI"digest;TI"%ae097be67c98e49a65d41be0d0444bfa;FI"
_version;TI"%1005ed9f20e25fb0a0599a7017dd0e6b;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
alchemy-devise-2.1.0.beta3 spec/dummy/tmp/cache/assets/test/sprockets/27f66e686f19a0ad7c041a0dc486e8d5
alchemy-devise-2.1.0.beta3 spec/dummy/tmp/cache/assets/test/sprockets/5c9ed637b345af3aae90822550e7d320