Projects: loading on login on the Dashboard
authorLoic Baron <loic.baron@lip6.fr>
Wed, 21 Jan 2015 18:13:25 +0000 (19:13 +0100)
committerLoic Baron <loic.baron@lip6.fr>
Wed, 21 Jan 2015 18:13:25 +0000 (19:13 +0100)
portal/static/js/myslice.js

index 40cf8a2..213a271 100644 (file)
@@ -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();
-                }
             }
         }