Sha256: bcfadc0a0807275eaa4cd16077325138e3add7cdb26c20b4c3394deded477eb2

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1320436797.7588251:@value{	I"length:EFiI"digest;
F"%2f584dbad288eec3a902f09ec919c1efI"source;
FI"(function() {
  $(document).ready(function() {
    $("#find_appointments").bind('click', function() {
      var lab_code, selected_lab;
      selected_lab = $('#lab_list_container input:radio:checked');
      lab_code = $('#lab_list_container input:radio:checked').parent('li').find('form input#lab_code').val();
      return $("form#appointment_data_search input#lab_code").val(lab_code);
    });
    $("form#appointment_data_search").bind('ajax:beforeSend', function(event, data) {
      var date, form, lab_code, messages, span, valid_date;
      form = $(this);
      messages = [];
      date = form.find('input#appointment_date').val();
      valid_date = Date.parseExact(date, "M/d/yyyy");
      if (!valid_date) {
        messages.push("Date is invalid, must be mm/dd/yyyy format");
      }
      lab_code = form.find('input#lab_code').val();
      if (!lab_code) {
        messages.push("Labcode is missing");
      }
      if (messages.length > 0) {
        span = $("<span>" + (messages.join("<br>")) + "</span>");
        form.find('.error_message').append(span);
        span.fadeOut(4000);
        return false;
      }
    }).bind('ajax:success', function(event, data) {
      window.appointment_list.setList(data.times);
      $('input:radio[name=appointment_time]:first').prop('checked', true);
      return $('form#appointment_data_search input[type=submit]').prop("disabled", false);
    }).bind('ajax:complete', function(event, data) {});
    return $("#more_appointments_list_toggler").live("click", function() {
      window.appointment_list.setShowNumber(window.max_appointment_show_number);
      $('input:radio[name=appointment_time]:first').prop('checked', true);
      return $("#more_appointments_list_toggler").hide();
    });
  });
}).call(this);
;
FI"
_version;
F"%2cc4aa34328a67588b085998aa5dce8c

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
medivo-0.1.8 spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e
medivo-0.1.7 spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e
medivo-0.1.6 spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e