Fixed umbsections directive - do not make any requests until the user is logged in - if they are already logged in, the event still executes.

This commit is contained in:
Shannon
2013-10-09 11:29:41 +11:00
parent d281f97659
commit 1ecb864e5f
2 changed files with 3 additions and 8 deletions

View File

@@ -43,12 +43,7 @@ function sectionsDirective($timeout, $window, navigationService, sectionResource
loadSections();
}
});
//on page refresh:
if(!scope.sections){
loadSections();
}
//on page resize
window.onresize = calculateHeight;