spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 in medivo-0.2.12 vs spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 in medivo-0.2.13

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321396915.8700809¯h: @value{ I" length:EFi…I" digest; -F"%ced5a7b35dc3680d38b801f094771762I" source; -FI"…/*! +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321397842.7730639yá: @value{ I" length:EFi[…I" digest; +F"%cefe993ca17524ae0278c0c5a2922210I" source; +FI"[…/*! * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. @@ -12702,42 +12702,44 @@ response = JSON.parse(status.responseText); return Appointment.ErrorHandler(form, status.status, response.message); }); Appointment.BeforeSendHandler = function(form) { var date, lab_code, messages, span, valid_date; + form.find('.error_message').empty(); messages = []; date = form.find('input#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); - false; + return false; + } else { + form.find('#find_appointments').prop("disabled", true); + $('.appointment_spinner_elem').show(); + return true; } - $('.appointment_spinner_elem').show(); - return true; }; Appointment.SuccessHandler = function(form, event, data) { if (data.times.length === 0) { Appointment.ErrorHandler($(this), 200, "No times available for that date"); return; } 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); + return form.find('#find_appointments').prop("disabled", false); }; Appointment.ErrorHandler = function(form, status, message) { var span; if (message.match(/Connection refused/i)) { message = "Unable to make appointments at this time. Try walk-in instead"; } span = $("<span>" + message + "</span>"); - form.find('.error_message').append(span); - return span.fadeOut(5000); + return form.find('.error_message').append(span); }; 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(); @@ -12758,6 +12760,6 @@ // the compiled file. // ; ; TI" _version; -F"%f5f18fc73e29cf21c2e406e5f8284371 +F"%99d846f2419dc62dc8606b39387006fb \ No newline at end of file