sandbox/tmp/cache/assets/D44/320/sprockets%2F27989e358a4a57b48c5e4062bff2aa4a in iugu-ux-1.0.2 vs sandbox/tmp/cache/assets/D44/320/sprockets%2F27989e358a4a57b48c5e4062bff2aa4a in iugu-ux-1.0.3

- old
+ new

@@ -1,8 +1,9 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372441621.967532: @value"e {I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1374498084.2512991: @value"Z +{I" class:EFI"ProcessedAsset;FI"logical_path;F"1iugu-ux/components/usecode/iugu-ui-search.jsI" pathname;F"~/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffeeI"content_type;FI"application/javascript;FI" -mtime;FI"2013-01-08T11:07:52-02:00;FI" length;FiÉI" digest;F"%cb888e618e08712264435d06be745f0eI" source;FI"É(function() { +mtime;FI"2013-07-11T12:14:20-03:00;FI" length;Fi¾I" digest;F"%a7c91990d7e2d669ccad8a176a91c7caI" source;FI"¾(function() { var _ref, __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.Search = (function(_super) { @@ -19,11 +20,10 @@ 'keypress input.search': 'searchCollection' }; Search.prototype.searchCollection = function(e) { var query; - if (e.keyCode === 13) { this.handleEvent("search"); e.preventDefault(); query = $(e.target).val(); if (query === "") { @@ -40,17 +40,24 @@ Search.__super__.initialize.apply(this, arguments); return this; }; Search.prototype.render = function() { - return Search.__super__.render.apply(this, arguments); + var input, lastQuery; + Search.__super__.render.apply(this, arguments); + lastQuery = this.collection.getFilter('query'); + if ((lastQuery != null) && lastQuery.length > 0) { + input = this.$('input.search-query'); + input.val(lastQuery); + return input.focus(); + } }; return Search; })(IuguUI.Base); this.IuguUI.Search = IuguUI.Search; }).call(this); -;TI"dependency_digest;F"%eddd58765e245614c956a357f3a99783I"required_paths;F["~/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffeeI"dependency_paths;F[{I" path;F"~/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffeeI" -mtime;FI"2013-01-08T11:07:52-02:00;FI" digest;F"%5353c858ce9ba8456138e615bc82f503I" _version;F"%6776f581a4329e299531e1d52aa59832 +;TI"dependency_digest;F"%dbf1c7917e399842adb14708367aed43I"required_paths;F["~/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffeeI"dependency_paths;F[{I" path;F"~/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffeeI" +mtime;FI"2013-07-11T12:14:20-03:00;FI" digest;F"%0528843114f08cc40aa6aec1514c12d2I" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file