From a431fc631b3cb83fc61befbb6cdba89e486e1e36 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Wed, 21 Jan 2015 19:13:25 +0100 Subject: [PATCH] Projects: loading on login on the Dashboard --- portal/static/js/myslice.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/portal/static/js/myslice.js b/portal/static/js/myslice.js index 40cf8a2f..213a271b 100644 --- a/portal/static/js/myslice.js +++ b/portal/static/js/myslice.js @@ -204,11 +204,10 @@ var myslice = { // REGISTRY ONLY TO BE REMOVED WITH MANIFOLD-V2 $.post("/rest/myslice:authority/",{'fields':['authority_hrn'],'filters':{'authority_hrn':'CONTAINS'+parent_authority}}, function( data ) { localStorage.setItem('projects', JSON.stringify(data)); + if(isFunction(fn)){ + fn(); + } }); - }else{ - if(isFunction(fn)){ - fn(); - } } } -- 2.47.0