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;

View File

@@ -1922,10 +1922,10 @@
<Content Include="umbraco.presentation\umbraco\create\media.ascx" />
<Content Include="umbraco.presentation\umbraco\create\member.ascx" />
<Content Include="umbraco.presentation\umbraco\create\nodeType.ascx" />
</Content>
<Content Include="umbraco.presentation\umbraco\create\simple.ascx" />
<Content Include="umbraco.presentation\umbraco\create\xslt.ascx" />
</Content>
<Content Include="umbraco.presentation\umbraco\dashboard\LatestEdits.ascx">
<SubType>ASPXCodeBehind</SubType>
</Content>