Refresh page on asset creation
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user