spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229 in medivo-0.0.7 vs spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229 in medivo-0.0.8
- old
+ new
@@ -1,18 +1,21 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1319563272.0910001 :@value{ I"length:EFiI"digest;
-F"%03abec4ff90a613e4554260be0401ffaI"source;
-FI"(function() {
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1319712231.990046 \:@value{ I"length:EFiI"digest;
+F"%de5734e65a83e3840930d9d9629c47d8I"source;
+FI"(function() {
$(document).ready(function() {
- var data, lab_list, lab_list_view, map_view;
- map_view = null;
- lab_list = null;
+ var data;
data = $('#lab_list_container').data('labs');
- if (data) {
- lab_list = new window.LabList(data.labs);
- map_view = new window.MapView(lab_list, data.zip_location);
- lab_list_view = new window.LabListView(lab_list);
- map_view.render();
+ window.lab_list = new window.OrderedLabList([]);
+ window.map_view = new window.MapView(lab_list);
+ window.lab_list_view = new window.LabListView(lab_list);
+ LabList.tracker_elem.change(function() {
+ return console.log('changed');
+ });
+ LabList.tracker_elem.change();
+ if (data.labs) {
+ window.map_view.center_point = data.zip_location;
+ window.lab_list.setLabs(data.labs);
} else {
console.log('no data');
}
return $("form#lab_data_search").bind('ajax:beforeSend', function(event, data) {
var span, zip_code;
@@ -22,16 +25,14 @@
$('form#lab_data_search .error_message').append(span);
span.fadeOut(4000);
return false;
}
}).bind('ajax:success', function(event, data) {
- lab_list.setLabs(data.labs);
- lab_list_view.render();
- map_view.center_point = data.zip_location;
- map_view.render();
+ window.map_view.center_point = data.zip_location;
+ window.lab_list.setLabs(data.labs);
return $('form#lab_data_search input[type=submit]').prop("disabled", false);
}).bind('ajax:complete', function(event, data) {});
});
}).call(this);
;
FI"
_version;
-F"%b5deba4a1e9c5af26ce17ce6817a1345
+F"%ea688e5604d8d55a32508c85ec456677
\ No newline at end of file