Ensures the tree expansion doesn't happen when there are no child nodes.

This commit is contained in:
Shannon
2013-06-10 15:03:25 -02:00
parent 5a51a8440a
commit 655a280cf1
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ angular.module("umbraco.directives")
},
template: '<li><div ng-style="setTreePadding(node)">' +
'<ins ng-class="{\'icon-caret-right\': !node.expanded, \'icon-caret-down\': node.expanded}" ng-click="load(node)"></ins>' +
'<ins ng-hide="node.hasChildren" style="background:none;width:18px;"></ins>' +
'<ins ng-show="node.hasChildren" ng-class="{\'icon-caret-right\': !node.expanded, \'icon-caret-down\': node.expanded}" ng-click="load(node)"></ins>' +
'<i class="{{node | umbTreeIconClass:\'icon umb-tree-icon sprTree\'}}" style="{{node | umbTreeIconStyle}}"></i>' +
'<a ng-click="select(this, node, $event)" ng-href="#{{node.view}}">{{node.name}}</a>' +
'<i class="umb-options" ng-click="options(this, node, $event)"><i></i><i></i><i></i></i>' +

View File

@@ -2595,7 +2595,7 @@ xcopy "$(ProjectDir)"..\packages\SqlServerCE.4.0.0.0\x86\*.* "$(TargetDir)x86\"
<Import Project="$(SolutionDir)umbraco.presentation.targets" Condition="$(BuildingInsideVisualStudio) == true" />
<PropertyGroup>
<PostBuildEvent>xcopy "$(SolutionDir)"Umbraco.Web.UI.Client\build\belle\js\*.* "$(SolutionDir)"Umbraco.Web.UI\Umbraco\js /Y /F /E /D
xcopy"$(SolutionDir)"Umbraco.Web.UI.Client\build\belle\assets\*.* "$(SolutionDir)"Umbraco.Web.UI\Umbraco\assets /Y /F /E /D
xcopy "$(SolutionDir)"Umbraco.Web.UI.Client\build\belle\assets\*.* "$(SolutionDir)"Umbraco.Web.UI\Umbraco\assets /Y /F /E /D
xcopy "$(SolutionDir)"Umbraco.Web.UI.Client\build\belle\lib\*.* "$(SolutionDir)"Umbraco.Web.UI\Umbraco\lib /Y /F /E /D
xcopy "$(SolutionDir)"Umbraco.Web.UI.Client\build\belle\views\*.* "$(SolutionDir)"Umbraco.Web.UI\Umbraco\views /Y /F /E /D</PostBuildEvent>
</PropertyGroup>