diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-27 20:12:48 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-27 20:12:48 (GMT) |
commit | e5b1023ae2d5c99a98e68c2b997452551d07fa2f (patch) | |
tree | ff2900fee640c2a121bcaa8cd86e6985f220e970 /Doc/tools | |
parent | 58864b3cadb9555306e82800881c3993873fe942 (diff) | |
download | cpython-e5b1023ae2d5c99a98e68c2b997452551d07fa2f.zip cpython-e5b1023ae2d5c99a98e68c2b997452551d07fa2f.tar.gz cpython-e5b1023ae2d5c99a98e68c2b997452551d07fa2f.tar.bz2 |
#8040: fix the version.
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/sphinxext/static/version_switch.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/tools/sphinxext/static/version_switch.js b/Doc/tools/sphinxext/static/version_switch.js index cc99153..363bebf 100644 --- a/Doc/tools/sphinxext/static/version_switch.js +++ b/Doc/tools/sphinxext/static/version_switch.js @@ -52,8 +52,12 @@ } $(document).ready(function() { - var select = build_select(DOCUMENTATION_OPTIONS.VERSION, - DOCUMENTATION_OPTIONS.RELEASE); + var version = DOCUMENTATION_OPTIONS.VERSION.split('.'), + release = DOCUMENTATION_OPTIONS.RELEASE || DOCUMENTATION_OPTIONS.VERSION; + + version = version[0] + '.' + version[1]; + var select = build_select(version, release); + $('.version_switcher_placeholder').html(select); $('.version_switcher_placeholder select').bind('change', on_switch); }); |