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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user