o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357654410.7455969·Ü: @value"? {I" class:EFI"BundledAsset;FI"logical_path;FI"7iugu-ux/components/usecode/iugu-ui-search-range.js;FI" pathname;FI"/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search-range.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-08T11:07:48-02:00;FI" length;FiI" digest;F"%cf298600047cda148469972168744e5cI" 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"%656f0aa582bc3b8914b9b7e92311d80eI" _version;F"%9f3b95dd7ea3030dc35985c0a8020862