@@ -121,7 +121,7 @@ function parseIncoming(msg) {
121121 show ( "useLocalizedDistributionCheckbox" ) ;
122122 show ( "useEnableExtCorrRadio" ) ;
123123 show ( "extCorrRadioSPARTNSourceDropdown" ) ;
124- hide ( "shutdownNoChargeTimeoutCheckbox " ) ;
124+ hide ( "shutdownNoChargeTimeoutMinutesCheckboxDetail " ) ;
125125
126126 hide ( "constellationNavic" ) ; //Not supported on ZED
127127 }
@@ -512,6 +512,18 @@ function parseIncoming(msg) {
512512 hide ( "enableAutomaticResetDetails" ) ;
513513 }
514514 }
515+ else if ( id . includes ( "shutdownNoChargeTimeoutMinutes" ) ) {
516+ if ( val > 0 ) {
517+ ge ( "shutdownNoChargeTimeoutMinutes" ) . value = val ;
518+ ge ( "shutdownNoChargeTimeoutMinutesCheckbox" ) . checked = true ;
519+ show ( "shutdownNoChargeTimeoutMinutesDetails" ) ;
520+ }
521+ else {
522+ ge ( "shutdownNoChargeTimeoutMinutes" ) . value = 0 ;
523+ ge ( "shutdownNoChargeTimeoutMinutesCheckbox" ) . checked = false ;
524+ hide ( "shutdownNoChargeTimeoutMinutesDetails" ) ;
525+ }
526+ }
515527
516528 //Convert incoming mm to local meters
517529 else if ( id . includes ( "antennaHeight_mm" ) ) {
@@ -960,12 +972,18 @@ function validateFields() {
960972 }
961973
962974 if ( ge ( "enableAutoReset" ) . checked == true ) {
963- checkElementValue ( "rebootMinutes" , 1 , 4294967 , "Must be 1 to 4294967 " , "collapseSystemConfig" ) ;
975+ checkElementValue ( "rebootMinutes" , 0 , 4294967 , "Must be 0 to 4,294,967 " , "collapseSystemConfig" ) ;
964976 }
965977 else {
966978 clearElement ( "rebootMinutes" , 0 ) ; //0 = disable
967979 }
968980
981+ if ( ge ( "shutdownNoChargeTimeoutMinutesCheckbox" ) . checked == true ) {
982+ checkElementValue ( "shutdownNoChargeTimeoutMinutes" , 0 , 604800 , "Must be 0 to 604,800" , "collapseSystemConfig" ) ;
983+ }
984+ else {
985+ clearElement ( "shutdownNoChargeTimeoutMinutes" , 0 ) ; //0 = disable
986+ }
969987
970988 //Ethernet
971989 if ( platformPrefix == "EVK" ) {
@@ -1737,12 +1755,12 @@ document.addEventListener("DOMContentLoaded", (event) => {
17371755 }
17381756 } ) ;
17391757
1740- ge ( "shutdownNoChargeTimeout " ) . addEventListener ( "change" , function ( ) {
1741- if ( ge ( "shutdownNoChargeTimeout " ) . checked == true ) {
1742- show ( "shutdownNoChargeTimeoutDetails " ) ;
1758+ ge ( "shutdownNoChargeTimeoutMinutesCheckbox " ) . addEventListener ( "change" , function ( ) {
1759+ if ( ge ( "shutdownNoChargeTimeoutMinutesCheckbox " ) . checked == true ) {
1760+ show ( "shutdownNoChargeTimeoutMinutesDetails " ) ;
17431761 }
17441762 else {
1745- hide ( "shutdownNoChargeTimeoutDetails " ) ;
1763+ hide ( "shutdownNoChargeTimeoutMinutesDetails " ) ;
17461764 }
17471765 } ) ;
17481766
0 commit comments