++
This commit is contained in:
@@ -49,10 +49,10 @@
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.unesting-item.is-hidden .unesting-item-header-content-text
|
||||
/*.unesting-item.is-hidden .unesting-item-header-content-text
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
}*/
|
||||
|
||||
.unesting-item.is-active > .unesting-item-header:after,
|
||||
.unesting-item.is-active > .unesting-item-header:before
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<div class="unesting-items" ng-hide="nodes.length === 0" ng-class="{ 'is-hidden': nodes.length === 0 }" ui-sortable="sortableOptions" ng-model="nodes">
|
||||
|
||||
<div class="unesting-item" ng-repeat="node in nodes" ng-class="{ 'is-active' : $parent.realCurrentNode.key === node.key, 'umb-nested-content__item--single' : $parent.singleMode, 'is-hidden': isHidden($index) }">
|
||||
<div class="unesting-item" ng-repeat="node in nodes" ng-class="{ 'is-active' : $parent.realCurrentNode.key === node.key, 'umb-nested-content__item--single' : $parent.singleMode, 'is-hidden': !!model.value[$index]['uNestingHide'] }">
|
||||
|
||||
<div class="unesting-item-header" ng-click="$parent.editNode($index)" ng-hide="$parent.singleMode">
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<i class="icon icon-trash-alt"></i>
|
||||
</a>
|
||||
|
||||
<a class="unesting-icon is-negative hidden-toggle" localize="title" title="general_visibility" ng-if="canHide(model.value[$index])" ng-click="clickHide($event, node);" prevent-default>
|
||||
<a class="unesting-icon is-negative hidden-toggle" localize="title" title="general_visibility" ng-if="canHide(model.value[$index])" ng-click="clickHide($event, node, $index);" prevent-default>
|
||||
<i class="icon icon-lock"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -38,14 +38,12 @@ angular.module("umbraco").controller("brothers.uNesting.PropertyEditorController
|
||||
{
|
||||
angular.extend(this, $controller('Umbraco.PropertyEditors.NestedContent.PropertyEditorController', { $scope: $scope }));
|
||||
|
||||
$scope.clickHide = function ($event, node)
|
||||
$scope.clickHide = function ($event, node, $index)
|
||||
{
|
||||
$($event.target).closest('.unesting-item').find('.umb-property[unesting-property="uNestingHide"] .umb-toggle').trigger('click');
|
||||
if ($scope.realCurrentNode)
|
||||
{
|
||||
$scope.$broadcast("ncSyncVal", { key: $scope.realCurrentNode.key });
|
||||
}
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
$($event.target).closest('.unesting-item').find('.umb-property[unesting-property="uNestingHide"] .umb-toggle').trigger('click');
|
||||
$scope.model.value[$index]['uNestingHide'] = !$scope.model.value[$index]['uNestingHide'];
|
||||
};
|
||||
|
||||
$scope.canHide = function (item)
|
||||
|
||||
Reference in New Issue
Block a user