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:
@@ -43,12 +43,7 @@ function sectionsDirective($timeout, $window, navigationService, sectionResource
|
||||
loadSections();
|
||||
}
|
||||
});
|
||||
|
||||
//on page refresh:
|
||||
if(!scope.sections){
|
||||
loadSections();
|
||||
}
|
||||
|
||||
|
||||
//on page resize
|
||||
window.onresize = calculateHeight;
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user