toodego: update for new optimod (#51532)

This commit is contained in:
Frédéric Péters 2021-03-29 18:16:15 +02:00
parent 69c3f14893
commit 269fb93803
1 changed files with 2 additions and 2 deletions

View File

@ -48,13 +48,13 @@ function maybe_go()
var lat2 = $('.action-goto').data('lat');
var lng2 = $('.action-goto').data('lng');
if (! (lat1 && lng1 && lat2 && lng2)) return;
console.log('going to!');
$('.cell.goto').each(function() {
var url = $(this).data('ajax-cell-url');
$(this).data('ajax-cell-url', url + '?lat1=' + lat1 + '&lng1=' + lng1 +
'&lat2=' + lat2 + '&lng2=' + lng2 +
'&date=' + getOnlyMoovDateString() +
'&to=' + encodeURI($('#goto-destination .tile-title h2').text()));
'&to=' + encodeURI($('#goto-destination .tile-title h2').text()) +
'&');
combo_load_cell($(this));
});
}