spec/dummy_app/tmp/cache/assets/test/sprockets/ad452a261b3fc90b3aca85ffc630817d in rails_admin-0.6.1 vs spec/dummy_app/tmp/cache/assets/test/sprockets/ad452a261b3fc90b3aca85ffc630817d in rails_admin-0.6.2

- old
+ new

@@ -1,8 +1,8 @@ {I" -class:ETI"BundledAsset;FI"logical_path;TI"rails_admin/rails_admin.js;TI" pathname;TI"_/Users/sferik/Code/Ruby/gems/rails_admin/app/assets/javascripts/rails_admin/rails_admin.js;FI"content_type;TI"application/javascript;TI" -mtime;Tl+RI" length;Ti I" digest;TI"%cceb45889de6a1045fa13aff07e47346;FI" source;TI" /*! +class:EFI"BundledAsset;FI"logical_path;FI"rails_admin/rails_admin.js;TI" pathname;FI"_/Users/sferik/Code/Ruby/gems/rails_admin/app/assets/javascripts/rails_admin/rails_admin.js;TI"content_type;FI"application/javascript;FI" +mtime;Fl+õ/SI" length;Fiҏ I" digest;F"%471f977151ad9cd32de027a21533403cI" source;FI"ҏ /*! * jQuery JavaScript Library v1.11.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ @@ -20720,18 +20720,19 @@ }, _queryFilter: function(val) { var widget = this; widget._query(val, function(matches) { - var i, html = ""; + var i; + widget.collection.html(''); for (i in matches) { if (matches.hasOwnProperty(i) && !widget.selected(matches[i].id)) { - html += '<option value="' + matches[i].id + '" title="' + matches[i].label + '">' + matches[i].label + '</option>'; + widget.collection.append( + $('<option></option>').attr('value', matches[i].id).attr('title', matches[i].label).text(matches[i].label) + ); } } - - widget.collection.html(html); }); }, _buildCache: function(options) { var widget = this; @@ -20804,11 +20805,11 @@ options.each(function(i, option) { var el = widget.element.find('option[value="' + option.value + '"]'); if (el.length) { el.attr("selected", "selected"); } else { - widget.element.append($('<option value="' + option.value + '" selected="selected"></option>')); + widget.element.append($('<option></option>').attr('value', option.value).attr('selected', "selected")); } }); $(options).appendTo(this.selection).attr('selected', false); }, @@ -20900,11 +20901,11 @@ .autocomplete({ delay: this.options.searchDelay, minLength: this.options.minLength, source: this._getSourceFunction(this.options.source), select: function(event, ui) { - var option = $('<option value="' + ui.item.id + '" selected="selected">' + ui.item.value + '</option>'); + var option = $('<option></option>').attr('value', ui.item.id).attr('selected', 'selected').text(ui.item.value); select.html(option); select.trigger("change", ui.item.id); self._trigger("selected", event, { item: option }); @@ -24837,6 +24838,6 @@ -;TI"required_assets_digest;TI"%5120595800ee9af08d046dfc4b89bd90;FI" _version;TI"%ad5851230fbdd4f8a862674697158df2;F +;TI"required_assets_digest;F"%837b6536b25e2f8c474576e258264035I" _version;F"%1005ed9f20e25fb0a0599a7017dd0e6b \ No newline at end of file