Add rider selection to one step form. #270

This commit is contained in:
Korina Cordero 2020-01-10 05:53:28 +00:00
parent 0ed4e10251
commit b7b673fdaf

View file

@ -930,13 +930,13 @@ $(function() {
}
});
$(function(){
$(function() {
var selectedHub = "";
$("#hubs-table").on('click', 'tr', function() {
$('#hubs-table').on('click', 'tr', function() {
var id = $(this).data('id');
// highlight this row
$("#hubs-table").find('.m-table__row--primary').removeClass('m-table__row--primary');
$('#hubs-table').find('.m-table__row--primary').removeClass('m-table__row--primary');
$(this).addClass('m-table__row--primary');
@ -965,6 +965,21 @@ $(function() {
});
});
$(function() {
var selectedRider = "";
$('#riders-table').on('click', 'tr', function() {
var id = $(this).data('id');
// highlight this row
$('#riders-table').find('.m-table__row--primary').removeClass('m-table__row--primary');
$(this).addClass('m-table__row--primary');
// set rider
selectedRider = id;
});
});
{% if mode in ['update-processing', 'update-reassign-hub'] %}
// display hub map
// OSM code