o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357820267.457186: @value"K {I" class:EFI"BundledAsset;FI"logical_path;FI"7iugu-ux/components/usecode/iugu-ui-search-range.js;TI" pathname;FI"‹/Users/nkr/.rvm/gems/ruby-1.9.3-p327/gems/iugu-ux-0.8.7/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search-range.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-09T15:40:06-02:00;FI" length;FiI" digest;F"%9d9f184f2cafaac5cce3f4f2b4c09d66I" source;FI"(function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; IuguUI.SearchRange = (function(_super) { __extends(SearchRange, _super); function SearchRange() { return SearchRange.__super__.constructor.apply(this, arguments); } SearchRange.prototype.layout = "iugu-ui-search-range"; SearchRange.prototype.defaults = { fieldName: "created_at" }; SearchRange.prototype.events = { 'click .search-range-submit': 'searchCollection' }; SearchRange.prototype.searchCollection = function(e) { var from, to; e.preventDefault(); from = $('.search-range-from').val(); to = $('.search-range-to').val(); if (from === "") { this.collection.removeFilter(this.options.fieldName + '_from'); } else { this.collection.configureFilter(this.options.fieldName + '_from', from); } if (to === "") { this.collection.removeFilter(this.options.fieldName + '_to'); } else { this.collection.configureFilter(this.options.fieldName + '_to', to); } return this.collection.fetch(); }; SearchRange.prototype.initialize = function() { _.bindAll(this, 'searchCollection'); SearchRange.__super__.initialize.apply(this, arguments); return this; }; SearchRange.prototype.render = function() { return SearchRange.__super__.render.apply(this, arguments); }; return SearchRange; })(IuguUI.Base); this.IuguUI.SearchRange = IuguUI.SearchRange; }).call(this); ;FI"required_assets_digest;F"%794ee8ab77fbf38ed62e93cade75e080I" _version;F"%6776f581a4329e299531e1d52aa59832