{I" class:ETI"ProcessedAsset;FI"logical_path;TI"#alchemy/alchemy.list_filter.js;FI" pathname;TI"…/Users/tvd/.rvm/gems/ruby-2.1.5@alchemy-gem/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+,ð£TI" length;Ti*I" digest;TI"%251bb6d94f5befa06ada0accfdde15fa;FI" source;TI"*(function() { if (typeof window.Alchemy === 'undefined') { window.Alchemy = {}; } Alchemy.ListFilterHandler = (function() { function ListFilterHandler(filter) { this.filter_field = $(filter); this.items = $(this.filter_field.data('alchemy-list-filter')); this.clear = this.filter_field.siblings('.js_filter_field_clear'); this._observe(); } ListFilterHandler.prototype._observe = function() { this.filter_field.on('keyup', (function(_this) { return function(e) { _this.clear.show(); return _this._filter(_this.filter_field.val()); }; })(this)); this.clear.click((function(_this) { return function(e) { e.preventDefault(); return _this._clear(); }; })(this)); this.filter_field.focus(function() { return key.setScope('list_filter'); }); return key('esc', 'list_filter', (function(_this) { return function() { _this._clear(); return _this.filter_field.blur(); }; })(this)); }; ListFilterHandler.prototype._filter = function(term) { if (term === '') { this.clear.hide(); } return this.items.map(function() { var item; item = $(this); if (item.attr('name').toLowerCase().indexOf(term.toLowerCase()) !== -1) { return item.show(); } else { return item.hide(); } }); }; ListFilterHandler.prototype._clear = function() { this.filter_field.val(''); return this._filter(''); }; return ListFilterHandler; })(); Alchemy.ListFilter = function(scope) { return $('[data-alchemy-list-filter]', scope).map(function() { return new Alchemy.ListFilterHandler(this); }); }; }).call(this); ;TI"dependency_digest;TI"%50850f49fc632ce999593319130040ee;FI"required_paths;T[I"…/Users/tvd/.rvm/gems/ruby-2.1.5@alchemy-gem/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee;FI"dependency_paths;T[{I" path;TI"…/Users/tvd/.rvm/gems/ruby-2.1.5@alchemy-gem/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee;FI" mtime;TI"2014-12-31T13:46:36+01:00;TI" digest;TI"%5d265e5956a183b8ed0f44ef12b34c62;FI" _version;TI"%e4fae582d35919173aa703e1ae9b242e;F