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

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320876777.0274329Áv: @value{ I" length:EFixWI" digest; -F"%10b8bcf9db1210e8e4d863c706332810I" source; -FI"xW/*! +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320949926.47219788}: @value{ I" length:EFiXI" digest; +F"%928fc1fd6c90d96ff18e976946032d4aI" source; +FI"X/*! * jQuery JavaScript Library v1.6.4 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. @@ -12406,21 +12406,24 @@ form.find('.error_message').append(span); span.fadeOut(4000); return false; } }).bind('ajax:success', function(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); }).bind('ajax:complete', function(event, data) {}).bind('ajax:error', function(xhr, status, error) { var form, response; form = $(this); - console.log(status); response = JSON.parse(status.responseText); - return Appointment.ErrorHandler(form, response.message); + return Appointment.ErrorHandler(form, status.status, response.message); }); - Appointment.ErrorHandler = function(form, message) { + Appointment.ErrorHandler = function(form, status, message) { var span; if (message.match(/Connection refused/i)) { message = "Appointment server not responding"; } span = $("<span>" + message + "</span>"); @@ -12450,6 +12453,6 @@ // the compiled file. // ; ; FI" _version; -F"%974d67eedd3a5a6b3070d411121f2ec4 +F"%1fa142f3005124fdb42acca6ecf3e4e0 \ No newline at end of file