From: Loic Baron Date: Wed, 21 Jan 2015 18:13:25 +0000 (+0100) Subject: Projects: loading on login on the Dashboard X-Git-Tag: myslice-1.3~110 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a431fc631b3cb83fc61befbb6cdba89e486e1e36;p=myslice.git Projects: loading on login on the Dashboard --- 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(); - } } }