Only navigate to the album on 200.

master
voussoir 2017-07-29 15:40:40 -07:00
parent 4fc203634c
commit c3c86de7f8
1 changed files with 8 additions and 1 deletions

View File

@ -279,7 +279,14 @@ function create_album_and_follow(parent)
}
function receive_callback(response)
{
window.location.href = "/album/" + response["id"];
if (response["_status"] == 200 && response["id"])
{
window.location.href = "/album/" + response["id"];
}
else
{
console.log(response);
}
}
post(url, data, receive_callback);
}