This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function grabBookings(date) { | |
$$(".booking").each(function(b) { | |
b.remove(); | |
}); | |
if (!$('ajax-loader')) { | |
$('bookings').insert("<img src='/images/ajax-loader.gif' id='ajax-loader' />"); | |
} | |
new Ajax.Request(date.readAttribute("href"), {method:"get", evalJS:true, onSuccess:function(transport) { | |
var bookings = transport.responseJSON; | |
$('ajax-loader').remove(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($("plane_airport_id")) { | |
new Form.Element.Observer('plane_airport_id', 0.1, function(event) { | |
var string = $F('plane_airport_id'); | |
if (string.length >= 3) { | |
new Ajax.Request('/airports', {method:'get',parameters:{search:string}, | |
onSuccess: function(transport) { | |
var airports = transport.responseJSON; | |
var lis = $('airport-list').descendants(); | |
if (lis.length > 0) { | |
lis.each(function(l) { |
NewerOlder