diff --git a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css index 700b47a..1d0dd61 100644 --- a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css +++ b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css @@ -312,7 +312,8 @@ .unesting-media-item { - border-radius: 3px; + background: #f6f4f4; + border-radius: 4px; margin-right: 6px; display: flex; align-items: center; @@ -326,13 +327,13 @@ .unesting-media-item-image { background: #f6f4f4; - border-radius: 3px; + border-radius: 4px; border: 1px solid #f6f6f7; } .unesting-media-item-text { - padding: 0 10px; + padding: 0 15px; max-width: 100px; overflow: hidden; white-space: nowrap; @@ -352,7 +353,7 @@ justify-content: center; align-items: center; font-size: 12px; - border-radius: 3px; + border-radius: 4px; } @@ -384,7 +385,7 @@ .umb-property[unesting-property="uNestingHide"] { - display: none; + } diff --git a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.html b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.html index 69aab37..57a5a1f 100644 --- a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.html +++ b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.html @@ -14,7 +14,7 @@
-
+
diff --git a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js index cc3f981..aed9462 100644 --- a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js +++ b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js @@ -40,17 +40,24 @@ angular.module("umbraco").controller("brothers.uNesting.PropertyEditorController $scope.clickHide = function ($event, node) { - //syncCurrentNode(); - console.info(node); + $($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.stopPropagation(); - //clipboardService.copy("elementType", node.contentTypeAlias, node); - //$event.stopPropagation(); }; $scope.canHide = function (item) { return typeof item['uNestingHide'] !== 'undefined'; }; + + $scope.isHidden = function (index) + { + var item = $scope.model.value[index]; + return item['uNestingHide'] === '1'; + }; }); @@ -112,8 +119,8 @@ angular.module('umbraco.directives').directive('unMedia', function ($http, $comp limit: '@' }, template: '' + - '
' + - '
' + + '
' + + '
' + '' + '{{item.title | unHtml }}' + '
' + diff --git a/UmbracoPackages/UmbracoPackages.csproj b/UmbracoPackages/UmbracoPackages.csproj index 31dfd2a..9a1651b 100644 --- a/UmbracoPackages/UmbracoPackages.csproj +++ b/UmbracoPackages/UmbracoPackages.csproj @@ -395,6 +395,7 @@ +