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

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320626074.3154249/ì: @value{ I" length:EFiAUI" digest; -F"%6edcf4ca69bc918ef4003a7c778231e0I" source; -FI"AU/*! +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320876777.0274329Áv: @value{ I" length:EFixWI" digest; +F"%10b8bcf9db1210e8e4d863c706332810I" source; +FI"xW/*! * jQuery JavaScript Library v1.6.4 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. @@ -12409,11 +12409,26 @@ } }).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) {}); + }).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); + }); + Appointment.ErrorHandler = function(form, message) { + var span; + if (message.match(/Connection refused/i)) { + message = "Appointment server not responding"; + } + span = $("<span>" + message + "</span>"); + form.find('.error_message').append(span); + return span.fadeOut(4000); + }; 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(); }); @@ -12435,6 +12450,6 @@ // the compiled file. // ; ; FI" _version; -F"%928f029da8a7d4c603bdf01f87434114 +F"%974d67eedd3a5a6b3070d411121f2ec4 \ No newline at end of file