Only navigate to the album on 200.
This commit is contained in:
		
							parent
							
								
									4fc203634c
								
							
						
					
					
						commit
						c3c86de7f8
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -278,9 +278,16 @@ function create_album_and_follow(parent) | ||||||
|         data.append("parent", parent); |         data.append("parent", parent); | ||||||
|     } |     } | ||||||
|     function receive_callback(response) |     function receive_callback(response) | ||||||
|  |     { | ||||||
|  |         if (response["_status"] == 200 && response["id"]) | ||||||
|         { |         { | ||||||
|             window.location.href = "/album/" + response["id"]; |             window.location.href = "/album/" + response["id"]; | ||||||
|         } |         } | ||||||
|  |         else | ||||||
|  |         { | ||||||
|  |             console.log(response); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|     post(url, data, receive_callback); |     post(url, data, receive_callback); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue