From 0e76d481a1b548a19d3487c811f32e0dec6b49dc Mon Sep 17 00:00:00 2001 From: Nissim Hadar Date: Fri, 29 Dec 2017 08:28:31 -0800 Subject: [PATCH] Completed the use of radio-buttons to hide disabled sections. --- scripts/system/html/entityProperties.html | 6 +++--- scripts/system/html/js/entityProperties.js | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/system/html/entityProperties.html b/scripts/system/html/entityProperties.html index a1be38bb06..ee2301b219 100644 --- a/scripts/system/html/entityProperties.html +++ b/scripts/system/html/entityProperties.html @@ -508,7 +508,7 @@ -
+
@@ -569,7 +569,7 @@
-
+
@@ -587,7 +587,7 @@
- + Haze diff --git a/scripts/system/html/js/entityProperties.js b/scripts/system/html/js/entityProperties.js index da9be64ef0..98e67cde05 100644 --- a/scripts/system/html/js/entityProperties.js +++ b/scripts/system/html/js/entityProperties.js @@ -1104,8 +1104,15 @@ function loaded() { elZoneFilterURL.value = properties.filterURL; // Show/hide sections as required - showElements(document.getElementsByClassName('skybox-section'), + showElements(document.getElementsByClassName('skybox-section'), elZoneSkyboxModeEnabled.checked); + showElements(document.getElementsByClassName('keylight-section'), + elZoneKeyLightModeEnabled.checked); + showElements(document.getElementsByClassName('ambient-section'), + elZoneAmbientLightModeEnabled.checked); + showElements(document.getElementsByClassName('haze-section'), + elZoneHazeModeEnabled.checked); + } else if (properties.type === "PolyVox") { elVoxelVolumeSizeX.value = properties.voxelVolumeSize.x.toFixed(2); elVoxelVolumeSizeY.value = properties.voxelVolumeSize.y.toFixed(2);