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

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320143956.595834"%: @value{ I" length:EFiqSI" digest; -F"%f74312e78822e6b1e4ed562bfd529453I" source; -FI"qS/*! +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320434831.3743241ôí: @value{ I" length:EFiçTI" digest; +F"%b2bffe918878ab60f0d860b4311af8a2I" source; +FI"çT/*! * jQuery JavaScript Library v1.6.4 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. @@ -11219,15 +11219,17 @@ return false; } }).bind('ajax:success', function(event, data) { window.map_view.center_point = data.zip_location; window.lab_list.setList(data.labs); + $('input:radio[name=selected_lab]:first').prop('checked', true); return $('form#lab_data_search input[type=submit]').prop("disabled", false); }).bind('ajax:complete', function(event, data) {}); return $("#more_labs_list_toggler").live("click", function() { window.lab_list.setShowNumber(window.max_lab_show_number); - return $("#more_labs_list_toggler").parent('p').hide(); + $('input:radio[name=selected_lab]:first').prop('checked', true); + return $("#more_labs_list_toggler").hide(); }); }); }).call(this); // This is a manifest file that'll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically @@ -11244,11 +11246,12 @@ window.map_view = new window.MapView(lab_list); window.lab_list_view = new window.LabListView(lab_list); data = $('#lab_list_container').data('labs'); if (data.labs) { window.map_view.center_point = data.zip_location; - return window.lab_list.setList(data.labs); + window.lab_list.setList(data.labs); + return $('input:radio[name=selected_lab]:first').prop('checked', true); } else { return console.log('no data'); } }); }).call(this); @@ -12379,36 +12382,38 @@ }).call(this); (function() { $(document).ready(function() { $('input:radio[name=appointment_time]:checked').val(); $("form#appointment_data_search").bind('ajax:beforeSend', function(event, data) { - var date, lab_code, messages, span, valid_date; - alert(1); + var date, form, lab_code, messages, selected_lab, span, valid_date; + form = $(this); messages = []; - date = $(this).find('form#appointment_data_search input#date').val(); + date = form.find('input#appointment_date').val(); valid_date = Date.parseExact(date, "M/d/yyyy"); - console.log(valid_date); if (!valid_date) { messages.push("Date is invalid, must be mm/dd/yyyy format"); } - lab_code = $(this).find('form#appointment_data_search input#lab_code').val(); + selected_lab = $('#lab_list_container input:radio:checked'); + lab_code = $('#lab_list_container input:radio:checked').parent('li').find('form > input#lab_code').val(); + form.find('input#lab_code').val(lab_code); if (!lab_code) { messages.push("Labcode is missing"); } if (messages.length > 0) { span = $("<span>" + (messages.join("<br>")) + "</span>"); - $('form#appointment_data_search .error_message').append(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").parent('p').hide(); }); }); }).call(this); (function() { @@ -12427,6 +12432,6 @@ // the compiled file. // ; ; FI" _version; -F"%32f4b36d06a06f9dba98c59492f758a8 +F"%d929588548f42b6d133b39b16e77d761 \ No newline at end of file