File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
<h2 >
13
13
<% - type === ' api' ? ' API' : (type .charAt (0 ).toUpperCase () + type .slice (1 )) %>
14
14
<select class =" version-select" >
15
- <option value =" rc" selected >2.0</option >
16
- <!-- !!TODO: Update value to subdomain when 2.0 is released -->
17
- <option value =" " >1.0</option >
18
- <option >0.12</option >
19
- <option >0.11</option >
15
+ <option value =" SELF" selected >2.0</option >
16
+ <option value =" v1" >1.0</option >
17
+ <option value =" 012" >0.12</option >
18
+ <option value =" 011" >0.11</option >
20
19
</select >
21
20
</h2 >
22
21
<ul class =" menu-root" >
Original file line number Diff line number Diff line change 53
53
function initVersionSelect ( ) {
54
54
// version select
55
55
document . querySelector ( '.version-select' ) . addEventListener ( 'change' , function ( e ) {
56
- var version = e . target . value . replace ( '.' , '' )
56
+ var version = e . target . value
57
57
var section = window . location . pathname . match ( / \/ ( \w + ?) \/ / ) [ 1 ]
58
+ if ( version === 'SELF' ) return
58
59
window . location . assign (
59
60
'http://' +
60
61
version +
You can’t perform that action at this time.
0 commit comments