Sha256: d88c1b213e85a1390130967e10dc75ca81372e811145b25ad02cc4ab066f1b24

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1322611695.264545îN:@value{	I"length:EFi#I"digest;
F"%83fd2d584a183fd479e373443ac77b2cI"source;
FI"#
  $(document).ready(function() {
    var LabSearch;
    if (!$("form#lab_data_search")) return;
    LabSearch = {};
    LabSearch.form = $("form#lab_data_search");
    LabSearch.BeforeSendHandler = function(form) {
      var zip_code;
      form.find('.error_message').html('');
      zip_code = form.find('#zip_code').val();
      if (!zip_code.match(/\d{5}/)) {
        form.find('.error_message').html("Zip code should be 5 digits");
        return false;
      } else {
        form.find('#find_labs').prop("disabled", true);
        $('.lab_search_spinner_elem').show();
        return true;
      }
    };
    LabSearch.SuccessHandler = function(form, event, data) {
      window.map_view.center_point = data.zip_location;
      window.lab_list.setList(data.labs);
      return $('input:radio[name=selected_lab]:first').prop('checked', true);
    };
    $("form#lab_data_search").bind('ajax:beforeSend', function(event, data) {
      return LabSearch.BeforeSendHandler($(this));
    }).bind('ajax:success', function(event, data) {
      return LabSearch.SuccessHandler($(this), event, data);
    }).bind('ajax:complete', function(event, data) {
      var form;
      form = $(this);
      $('.lab_search_spinner_elem').hide();
      return form.find('#find_labs').prop("disabled", false);
    });
    return $("#more_labs_list_toggler").live("click", function() {
      window.lab_list.setShowNumber(window.max_lab_show_number);
      $('input:radio[name=selected_lab]:first').prop('checked', true);
      return $("#more_labs_list_toggler").hide();
    });
  });
;
FI"
_version;
F"%893b3016357765ee1e334c1fab09ad89

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
medivo-0.2.24 spec/dummy/tmp/cache/assets/CD8/DA0/sprockets%2F622aa5281d15503829a5f7a0bf56fc29