Sha256: e49b4a941593fdaccebf8021c9eebf8ae9643939b979b001c75969069b2ea3f4

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1318535266.1601868@€:@value{	I"length:EFiI"digest;
F"%cd0617be0bb397f4ed73302f457470c1I"source;
FI"(function() {
  $(document).ready(function() {
    var data, lab_list, lab_list_view, map_view;
    map_view = null;
    lab_list = null;
    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();
    } else {
      console.log('no data');
    }
    return $("form#lab_data_search").bind('ajax:beforeSend', function(event, data) {
      var span, zip_code;
      zip_code = $(this).find('#zip_code').val();
      if (!zip_code.match(/\d{5}/)) {
        span = $('<span>Zip code should be 5 digits</span>');
        $('form#lab_data_search .error_message').append(span);
        span.fadeOut(4000);
        return false;
      }
    }).bind('ajax:success', function(event, data) {
      lab_list.setLabs(data.labs);
      map_view.center_point = data.zip_location;
      map_view.render();
      return $('form#lab_data_search input[type=submit]').prop("disabled", false);
    }).bind('ajax:complete', function(event, data) {});
  });
}).call(this);
;
FI"
_version;
F"%177abf75bd47cb7672c58b0620d4a3b8

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
medivo-0.0.2 spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229