* hide region and lane if actually not configurable, task #51308.

This commit is contained in:
Wenrui LI
2022-03-21 16:49:43 +08:00
parent f5d5f89ec2
commit 1fae65d083
@@ -365,6 +365,13 @@ function loadLaneGroup(regionID)
$('#otherLane').replaceWith(data);
$('#otherLane_chosen').remove();
$('#otherLane').chosen();
/* Hide region and lane select if there are only one of each. */
if($('#otherLane').children().length < 2 && $('#region').children().length < 2)
{
$('#region').parent().parent().addClass('hide');
$('#otherLane').parent().parent().addClass('hide');
}
})
}
</script>