Add rider selection to one step form. #270
This commit is contained in:
parent
0ed4e10251
commit
b7b673fdaf
1 changed files with 18 additions and 3 deletions
|
|
@ -932,11 +932,11 @@ $(function() {
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var selectedHub = "";
|
var selectedHub = "";
|
||||||
$("#hubs-table").on('click', 'tr', function() {
|
$('#hubs-table').on('click', 'tr', function() {
|
||||||
var id = $(this).data('id');
|
var id = $(this).data('id');
|
||||||
|
|
||||||
// highlight this row
|
// 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');
|
$(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'] %}
|
{% if mode in ['update-processing', 'update-reassign-hub'] %}
|
||||||
// display hub map
|
// display hub map
|
||||||
// OSM code
|
// OSM code
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue