do hide hidden nested sub-items in block directives
This commit is contained in:
@@ -117,6 +117,11 @@ angular.module('umbraco.directives').directive('unMedia', function ($http, $comp
|
||||
titleCache[value] = item[scope.titleKey];
|
||||
}
|
||||
|
||||
if (item['uNestingHide'] === '1')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
return value;
|
||||
}).join(',');
|
||||
}
|
||||
@@ -267,12 +272,15 @@ angular.module('umbraco.directives').directive('unBoxes', function ($compile)
|
||||
|
||||
var headline = item[scope.titleKey];
|
||||
|
||||
if (item['uNestingHide'] !== '1')
|
||||
{
|
||||
items.push({
|
||||
maxLines: headline ? max - 1 : max,
|
||||
headline: headline,
|
||||
text: item[scope.key]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
scope.items = items.slice(0, limit);
|
||||
|
||||
Reference in New Issue
Block a user