toodego: update for new optimod (#51532)
This commit is contained in:
parent
69c3f14893
commit
269fb93803
|
@ -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));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue