mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	merge with 3.2
This commit is contained in:
		
						commit
						ab5da6a80e
					
				
					 1 changed files with 10 additions and 8 deletions
				
			
		|  | @ -43,19 +43,21 @@ | |||
| 
 | ||||
|     if (new_url != url) { | ||||
|       // check beforehand if url exists, else redirect to version's start page
 | ||||
|       $.get(new_url, function() { | ||||
|         window.location.href = new_url; | ||||
|       }).error(function() { | ||||
|         window.location.href = 'http://docs.python.org/' + selected; | ||||
|       $.ajax({ | ||||
|         url: new_url, | ||||
|         success: function() { | ||||
|            window.location.href = new_url; | ||||
|         }, | ||||
|         error: function() { | ||||
|            window.location.href = 'http://docs.python.org/' + selected; | ||||
|         } | ||||
|       }); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   $(document).ready(function() { | ||||
|     var version = DOCUMENTATION_OPTIONS.VERSION.split('.'), | ||||
|         release = DOCUMENTATION_OPTIONS.RELEASE || DOCUMENTATION_OPTIONS.VERSION; | ||||
| 
 | ||||
|     version = version[0] + '.' + version[1]; | ||||
|     var release = DOCUMENTATION_OPTIONS.VERSION; | ||||
|     var version = release.substr(0, 3); | ||||
|     var select = build_select(version, release); | ||||
| 
 | ||||
|     $('.version_switcher_placeholder').html(select); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl