spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 in medivo-0.0.2 vs spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 in medivo-0.0.3
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1318541826.5017011 ß:@value{ I"length:EFis¨I"digest;
-F"%6b8d4022f33daac16d7d5e1bb20acb89I"source;
-FI"s¨/*!
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1318603732.5007911 ö:@value{ I"length:EFi„©I"digest;
+F"%e01af6c898ff6da8652af80bee8aabfaI"source;
+FI"„©/*!
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
@@ -10845,19 +10845,19 @@
window.LabListView = (function() {
LabListView.prototype.el = null;
LabListView.prototype.template = null;
function LabListView(lab_list) {
this.lab_list = lab_list;
- this.el = $('ul#lab_list');
+ this.el = $('#lab_list');
this.template = Handlebars.compile($('#lab_item_template').html());
this.render();
}
LabListView.prototype.render = function() {
var view;
view = this;
view.el.empty();
- return $.each(this.lab_list.labs, function(index, lab) {
+ return $.each(this.lab_list.getLabs(), function(index, lab) {
return view.el.append($(view.template(lab.data)));
});
};
return LabListView;
})();
@@ -10898,11 +10898,11 @@
if (this.markerBounds && this.center_marker) {
return this.markerBounds.extend(this.center_marker.position);
}
};
MapView.prototype.setMarkers = function(map, markerBounds) {
- return $.each(this.collection.labs, function(index, model) {
+ return $.each(this.collection.getLabs(), function(index, model) {
return model.setMarker(map, markerBounds);
});
};
MapView.prototype.clear = function() {
this.collection.clearMarkers();
@@ -10954,15 +10954,15 @@
if (this.address !== void 0) {
return this.address.replace(/(\s*,\s*$)/g, "").titleize();
}
});
window.Lab = (function() {
+ Lab.prototype.marker = null;
+ Lab.prototype.map_tooltip_template = Handlebars.compile("{{titleize name}}\n{{address_without_comma address}}\n{{titleize city}},{{state}} ");
function Lab(data) {
this.data = data;
}
- Lab.prototype.marker = null;
- Lab.prototype.map_tooltip_template = Handlebars.compile("{{titleize name}}\n{{address_without_comma address}}\n{{titleize city}},{{state}} ");
Lab.prototype.clearMarker = function() {
if (this.marker) {
this.marker.setMap(null);
return this.marker = null;
}
@@ -10986,14 +10986,22 @@
return new google.maps.MarkerImage("/assets/medivo/lab.png");
};
return Lab;
})();
window.LabList = (function() {
- function LabList(lab_info) {
+ LabList.prototype.show_number = 3;
+ function LabList(lab_info, show_number) {
this.labs = [];
+ if (show_number) {
+ this.show_number = show_number;
+ }
+ console.log(this.show_number);
this.setLabs(lab_info);
}
+ LabList.prototype.getLabs = function() {
+ return this.labs.slice(0, this.show_number);
+ };
LabList.prototype.setLabs = function(lab_info) {
var labs;
this.clearMarkers();
labs = this.labs = [];
return $.each(lab_info, function(index, lab_data) {
@@ -11046,6 +11054,6 @@
// the compiled file.
//
;
;
FI"
_version;
-F"%83fb6e2bada2e008c568adc1611599f8
+F"%0a0f3ad5240704cf058ce77c1a9fd86d
\ No newline at end of file