Sha256: abcd4b1c9668393e7374664f0b2e5d75703a26a1bc8cda1c934fcc8de46801dc
Contents?: true
Size: 1.82 KB
Versions: 2
Compression:
Stored size: 1.82 KB
Contents
{I" class:ETI"ProcessedAsset; FI"logical_path; TI"$alchemy/alchemy.char_counter.js; FI" pathname; TI"/Users/tvd/.rvm/gems/ruby-2.1.5/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+š ’TI"length; Ti¦I"digest; TI"%0287a3fae7bf978af3bc32e2889d39cb; 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"%26d6d3928ab81e54f84e122c29e7a411; FI"required_paths; T[I"/Users/tvd/.rvm/gems/ruby-2.1.5/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee; FI"dependency_paths; T[{I" path; TI"/Users/tvd/.rvm/gems/ruby-2.1.5/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee; FI" mtime; TI"2014-12-17T23:15:54+01:00; TI"digest; TI"%84bf1948e86995f1e8450a3d3a6aa139; FI" _version; TI"%e4fae582d35919173aa703e1ae9b242e; F
Version data entries
2 entries across 1 versions & 1 rubygems