Sha256: 50fcfd402247c50c877b7ad3d6575a5f0f3bc23bd3db8e1fd1b0397f10dd4960
Contents?: true
Size: 1.85 KB
Versions: 2
Compression:
Stored size: 1.85 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.2/bundler/gems/alchemy_cms-7fe2839068da/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+/-TI"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"ƒ/Users/tvd/.rvm/gems/ruby-2.1.2/bundler/gems/alchemy_cms-7fe2839068da/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee; FI"dependency_paths; T[{I" path; TI"ƒ/Users/tvd/.rvm/gems/ruby-2.1.2/bundler/gems/alchemy_cms-7fe2839068da/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee; FI" mtime; TI"2014-10-02T11:38:55+02:00; TI"digest; TI"%ae097be67c98e49a65d41be0d0444bfa; FI" _version; TI"%1005ed9f20e25fb0a0599a7017dd0e6b; F
Version data entries
2 entries across 1 versions & 1 rubygems