mirror of https://github.com/python/cpython
#8040: fix the version.
This commit is contained in:
parent
8645890f8b
commit
fd3d102af8
|
@ -52,8 +52,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var select = build_select(DOCUMENTATION_OPTIONS.VERSION,
|
var version = DOCUMENTATION_OPTIONS.VERSION.split('.'),
|
||||||
DOCUMENTATION_OPTIONS.RELEASE);
|
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').html(select);
|
||||||
$('.version_switcher_placeholder select').bind('change', on_switch);
|
$('.version_switcher_placeholder select').bind('change', on_switch);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue