Commit 96c7a6da by Tobin

dc

parent 473d2d8b
......@@ -346,9 +346,9 @@ function markAsScheduled(transport_id,is_scheduled,thisObj){
jQuery.each(resp['succArr'], function(index,value) {
if(ride_ids != undefined && ride_ids != 'undefined' && ride_ids != null && ride_ids != 'null' && ride_ids != ''){
if(is_scheduled == '1'){
if(ride_ids.includes(value)) ride_ids.splice(ride_ids.indexOf(value),1);
if(ride_ids.includes(value)){ ride_ids.splice(ride_ids.indexOf(value),1); }
} else {
if(!ride_ids.includes(value)) ride_ids.push(value);
if(!ride_ids.includes(value)){ ride_ids.push(value); }
}
}
if(thisObj != ''){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment