From 1fae65d083e7a9c865a8fd5bb6651ccc632ed920 Mon Sep 17 00:00:00 2001 From: Wenrui LI Date: Mon, 21 Mar 2022 16:49:43 +0800 Subject: [PATCH] * hide region and lane if actually not configurable, task #51308. --- extension/lite/task/ext/view/create.html.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extension/lite/task/ext/view/create.html.php b/extension/lite/task/ext/view/create.html.php index ff6885c62c..57fc60a6f7 100644 --- a/extension/lite/task/ext/view/create.html.php +++ b/extension/lite/task/ext/view/create.html.php @@ -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'); + } }) }