File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 19
19
</div >
20
20
</a >
21
21
22
- <input type =" text" style =" margin-top: 2rem;" class =" block margin-auto" id =" search" placeholder =" Type to search" >
23
-
24
22
<div style =" margin-top: 1rem;" >
25
23
<span >View</span >
26
24
<select id =" numberpicker" >
33
31
<input type =" text" id =" datepicker" style =" margin-top: 0.5rem;" >
34
32
</div >
35
33
34
+ <input type =" text" style =" margin-top: 1.5rem;" class =" block margin-auto" id =" search" placeholder =" Search these builds" >
35
+
36
36
<h3 id =" scroll-text" class =" hide" style =" margin: 2rem 0 0 0;" >Scroll horizontally <i class =" fa fa-arrow-circle-o-right" aria-hidden =" true" ></i ></h3 >
37
37
38
38
<div id =" search-error" class =" hide" >No search results</div >
Original file line number Diff line number Diff line change @@ -132,14 +132,21 @@ function selectLatestPlatform(thisPlatform) {
132
132
var platformButtons = document . getElementById ( "latest-selector" ) . getElementsByTagName ( "TD" ) ;
133
133
var platformInfoBoxes = document . getElementById ( "latest-info" ) . getElementsByTagName ( "TD" ) ;
134
134
135
+ var thisPlatformSelector = document . getElementById ( "latest-selector-" + thisPlatform ) ;
136
+ var thisPlatformInfo = document . getElementById ( "latest-info-" + thisPlatform ) ;
137
+
138
+ var alreadySelected = false ;
139
+ if ( thisPlatformSelector . classList . contains ( "latest-highlight" ) ) {
140
+ alreadySelected = true ;
141
+ }
142
+
135
143
for ( i = 0 ; i < platformButtons . length ; i ++ ) {
136
144
platformButtons [ i ] . classList . remove ( "latest-highlight" ) ;
137
145
platformInfoBoxes [ i ] . classList . add ( "hide" ) ;
138
146
}
139
147
140
- var thisPlatformSelector = document . getElementById ( "latest-selector-" + thisPlatform ) ;
141
- var thisPlatformInfo = document . getElementById ( "latest-info-" + thisPlatform ) ;
142
-
143
- thisPlatformSelector . classList . add ( "latest-highlight" ) ;
144
- thisPlatformInfo . classList . remove ( "hide" ) ;
148
+ if ( alreadySelected === false ) {
149
+ thisPlatformSelector . classList . add ( "latest-highlight" ) ;
150
+ thisPlatformInfo . classList . remove ( "hide" ) ;
151
+ }
145
152
}
You can’t perform that action at this time.
0 commit comments