Refresh page on asset creation

This commit is contained in:
2016-11-09 17:18:04 +01:00
parent 6217934c99
commit d67ce6b880

View File

@@ -111,7 +111,6 @@ window.onpopstate = function(event)
/**
* Create a asset and show it in the #item-details div.
* NOTE: Not used at the moment, we're creating assets via Blender's VSE
*/
function asset_create(project_url)
{
@@ -125,7 +124,7 @@ function asset_create(project_url)
};
$.post(url, data, function(asset_data) {
asset_open(asset_data.asset_id);
window.location.href = asset_data.asset_id;
})
.fail(function(xhr) {
if (console) {