@@ -144,6 +144,10 @@ function pollTwo(all, counterForSaveNew)
144144 {
145145 counterForSave = numberOfLogs + 1 ;
146146 var arrayOfFilesLength = arrayOfFiles . length
147+ //Change ALL leds to yellow
148+ $ ( ".led-green" ) . hide ( ) ;
149+ $ ( ".led-red" ) . hide ( ) ;
150+ $ ( ".led-yellow" ) . css ( "display" , "inline-block" ) ;
147151 for ( var i = 0 ; i < arrayOfFilesLength ; i ++ )
148152 {
149153 var boolForRun = true ;
@@ -544,11 +548,14 @@ function pollFailure(xhr, error, dataInnerPass)
544548 //get all with class of id
545549 var subBoxes = document . getElementsByClassName ( dataInnerPass [ "id" ] ) ;
546550 var countOfBoxes = subBoxes . length ;
547- for ( var i = 0 ; i < countOfBoxes ; i ++ )
551+ if ( countOfBoxes > 0 )
548552 {
549- nameForBackground = subBoxes [ i ] . getElementsByClassName ( "innerFirstDevBox" ) [ 0 ] . id ;
550- noSpaceName = nameForBackground . replace ( "innerFirstDevBox" , "" ) ;
551- pollFailureInner ( xhr , error , noSpaceName , nameForBackground ) ;
553+ for ( var i = 0 ; i < countOfBoxes ; i ++ )
554+ {
555+ nameForBackground = subBoxes [ i ] . getElementsByClassName ( "innerFirstDevBox" ) [ 0 ] . id ;
556+ noSpaceName = nameForBackground . replace ( "innerFirstDevBox" , "" ) ;
557+ pollFailureInner ( xhr , error , noSpaceName , nameForBackground ) ;
558+ }
552559 }
553560 }
554561}
@@ -1503,7 +1510,7 @@ function calcuateWidth()
15031510 {
15041511 windowWidthText = "0px" ;
15051512 }
1506- document . getElementById ( "main" ) . style . marginLeft = windowWidthText ;
1513+ document . getElementById ( "main" ) . style . paddingLeft = windowWidthText ;
15071514 document . getElementById ( "main" ) . style . paddingRight = windowWidthText ;
15081515 if ( document . getElementById ( "sideBox" ) . style . display !== "none" )
15091516 {
@@ -1655,10 +1662,20 @@ function actuallyInstallUpdates()
16551662 $ ( "#settingsInstallUpdate" ) . submit ( ) ;
16561663}
16571664
1665+ function resetDevBoxTitleColor ( )
1666+ {
1667+ $ ( ".devBoxTitle , .devBoxActions" ) . css ( "background-color" , "" ) ;
1668+ }
1669+
1670+ function setDevBoxTitleColor ( key )
1671+ {
1672+ $ ( "#innerFirstDevBox" + key + " .devBoxTitle , #innerFirstDevBox" + key + " .devBoxActions" ) . css ( "background-color" , "#FFFFFF" ) ;
1673+ }
1674+
16581675function toggleDetailBar ( e , key )
16591676{
1660- $ ( ".devBoxTitle" ) . css ( "background-color" , "#aaaaaa" ) ;
1661- $ ( "#innerFirstDevBox" + key + " .devBoxTitle" ) . css ( "background-color" , "#FFFFFF" ) ;
1677+ resetDevBoxTitleColor ( ) ;
1678+ setDevBoxTitleColor ( key ) ;
16621679 if ( document . getElementById ( "sideBox" ) . style . display == "none" )
16631680 {
16641681 document . getElementById ( "sideBox" ) . style . display = "inline-block" ;
@@ -1702,7 +1719,7 @@ function toggleDetailBar(e, key)
17021719function closeDetailBar ( )
17031720{
17041721 $ ( '#iframeForStuff' ) . prop ( 'src' , "./iframe.html" ) ;
1705- $ ( ".devBoxTitle" ) . css ( "background-color" , "#aaaaaa" ) ;
1722+ resetDevBoxTitleColor ( ) ;
17061723 document . getElementById ( "sideBox" ) . style . display = "none" ;
17071724 document . getElementById ( "windows" ) . style . width = "auto" ;
17081725 resizeFunction ( ) ;
0 commit comments