Merge branch 'sprint/lite6_lwr_hide_region_lane' into 'master'

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

See merge request easycorp/zentaopms!2405
This commit is contained in:
王怡栋
2022-03-22 01:19:45 +00:00
@@ -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>