Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c7cefd2

Browse files
update version select
1 parent c0db953 commit c7cefd2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎themes/vue/layout/partials/sidebar.ejs‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
<h2>
1313
<%- type === 'api' ? 'API' : (type.charAt(0).toUpperCase() + type.slice(1)) %>
1414
<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>
2019
</select>
2120
</h2>
2221
<ul class="menu-root">

‎themes/vue/source/js/common.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
function initVersionSelect () {
5454
// version select
5555
document.querySelector('.version-select').addEventListener('change', function (e) {
56-
var version = e.target.value.replace('.','')
56+
var version = e.target.value
5757
var section = window.location.pathname.match(/\/(\w+?)\//)[1]
58+
if (version === 'SELF') return
5859
window.location.assign(
5960
'http://' +
6061
version +

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /