cpython: ee33671b2c6a (original) (raw)
Mercurial > cpython
changeset 79995:ee33671b2c6a 2.7
merge with 2.6
Georg Brandl georg@python.org | |
---|---|
date | Sun, 28 Oct 2012 08:06:11 +0100 |
parents | 7ca30af90c11(current diff)4a17784f2fee(diff) |
children | 7ddacd944cd6 |
files | Doc/Makefile Doc/tools/sphinxext/layout.html Doc/tools/sphinxext/static/version_switch.js |
diffstat | 1 files changed, 10 insertions(+), 8 deletions(-)[+] [-] Doc/tools/sphinxext/static/version_switch.js 18 |
line wrap: on
line diff
--- a/Doc/tools/sphinxext/static/version_switch.js +++ b/Doc/tools/sphinxext/static/version_switch.js @@ -43,19 +43,21 @@ if (new_url != url) { // check beforehand if url exists, else redirect to version's start page
$.get(new_url, function() {[](#l3.7)
window.location.href = new_url;[](#l3.8)
}).error(function() {[](#l3.9)
window.location.href = 'http://docs.python.org/' + selected;[](#l3.10)
$.ajax({[](#l3.11)
url: new_url,[](#l3.12)
success: function() {[](#l3.13)
window.location.href = new_url;[](#l3.14)
},[](#l3.15)
error: function() {[](#l3.16)
window.location.href = 'http://docs.python.org/' + selected;[](#l3.17)
} } $(document).ready(function() {}[](#l3.18) });[](#l3.19)