Sha256: 51fddf7d0b81061616b0d3fe471271b194b1f2ac22509106ef473ba2d5eabd08

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.3/gems/alchemy_cms-3.0.2/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+8úSTI"length;Ti¦I"digest;TI"%140c63f21d4c573ae4aac3cc0b06fc34;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"%59aebc3bb03af364cbf92f9c4e0e3036;FI"required_paths;T[I"y/Users/tvd/.rvm/gems/ruby-2.1.3/gems/alchemy_cms-3.0.2/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee;FI"dependency_paths;T[{I"	path;TI"y/Users/tvd/.rvm/gems/ruby-2.1.3/gems/alchemy_cms-3.0.2/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee;FI"
mtime;TI"2014-10-31T22:08:08+01:00;TI"digest;TI"%07f69fe588edc47c20d3bad62642f0ff;FI"
_version;TI"%0b3bb70d73e816e032b56c9484a86632;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/039caf296355c774f37d683a41b9f372
alchemy-devise-2.1.0.beta3 spec/dummy/tmp/cache/assets/test/sprockets/ca85887cd148c9e61d737785333d413b