diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-27 20:13:34 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-10-27 20:13:34 (GMT) |
commit | 0f3dae41efc06b01d17d932fc3c586e1a2f26a3f (patch) | |
tree | 58178f73e4ad14867ec758cbc246970e38cee1fe /Doc | |
parent | 9375ff1c5c7de64d233664c9c593844c9f8b611c (diff) | |
parent | edde409f60d9190ac65a45475cb2f773a4a7da03 (diff) | |
download | cpython-0f3dae41efc06b01d17d932fc3c586e1a2f26a3f.zip cpython-0f3dae41efc06b01d17d932fc3c586e1a2f26a3f.tar.gz cpython-0f3dae41efc06b01d17d932fc3c586e1a2f26a3f.tar.bz2 |
#8040: merge with 3.3.
Diffstat (limited to 'Doc')
-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); }); |