From d67ce6b8800508c14fbad071a3cb07cff8f106ff Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 9 Nov 2016 17:18:04 +0100 Subject: [PATCH] Refresh page on asset creation --- src/scripts/tutti/10_tasks.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/tutti/10_tasks.js b/src/scripts/tutti/10_tasks.js index 683e3f9..b638d70 100644 --- a/src/scripts/tutti/10_tasks.js +++ b/src/scripts/tutti/10_tasks.js @@ -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) {