spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 in medivo-0.2.2 vs spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 in medivo-0.2.3
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320951117.3280079 þ:@value{ I"length:EFiùWI"digest;
-F"%d1f80cc55786d9459c69f1cfb2197f7cI"source;
-FI"ùW/*!
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321034165.134969 £U:@value{ I"length:EFiçXI"digest;
+F"%c1f7d7d8ee5d738f7606384047aea4f0I"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.
@@ -12387,12 +12387,23 @@
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;
+ var form;
form = $(this);
+ return Appointment.BeforeSendHandler(form);
+ }).bind('ajax:success', function(event, data) {
+ return Appointment.SuccessHandler(event, data);
+ }).bind('ajax:complete', function(event, data) {}).bind('ajax:error', function(xhr, status, error) {
+ var form, response;
+ form = $(this);
+ 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;
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");
@@ -12405,24 +12416,20 @@
span = $("<span>" + (messages.join("<br>")) + "</span>");
form.find('.error_message').append(span);
span.fadeOut(4000);
return false;
}
- }).bind('ajax:success', function(event, data) {
+ };
+ Appointment.SuccessHandler = 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);
- response = JSON.parse(status.responseText);
- return Appointment.ErrorHandler(form, status.status, response.message);
- });
+ };
Appointment.ErrorHandler = function(form, status, message) {
var span;
if (message.match(/Connection refused/i)) {
message = "Appointment server not responding";
}
@@ -12453,6 +12460,6 @@
// the compiled file.
//
;
;
FI"
_version;
-F"%6c36f19f60bdcb2964220603772a192a
+F"%df648f0aeff258c4577508bb0d5e1983
\ No newline at end of file