VIVO-904: the display limit annotation on data and faux properties now determines when the more... link is employed for one of these properties. Regular object properties will have a default limit of 5. Also, the add statement link is no longer suppressed when the display limit is reached.
This commit is contained in:
parent
3cf15eaa95
commit
b3c5aaa794
1 changed files with 5 additions and 3 deletions
|
@ -48,7 +48,8 @@ $(document).ready(function(){
|
||||||
// var $propList = $('.property-list').not('>li>ul');
|
// var $propList = $('.property-list').not('>li>ul');
|
||||||
var $propList = $('.property-list:not(:has(>li>ul))');
|
var $propList = $('.property-list:not(:has(>li>ul))');
|
||||||
$propList.each(function() {
|
$propList.each(function() {
|
||||||
var $additionalItems = $(this).find('li:gt(4)');
|
var limit = $(this).attr("displayLimit");
|
||||||
|
var $additionalItems = $(this).find('li:gt(' + (limit - 1) + ')');
|
||||||
if ( $additionalItems.exists() ) {
|
if ( $additionalItems.exists() ) {
|
||||||
// create container for additional elements
|
// create container for additional elements
|
||||||
var $itemContainer = $('<div class="additionalItems" />').appendTo(this);
|
var $itemContainer = $('<div class="additionalItems" />').appendTo(this);
|
||||||
|
@ -66,7 +67,8 @@ $(document).ready(function(){
|
||||||
|
|
||||||
var $subPropList = $('.subclass-property-list');
|
var $subPropList = $('.subclass-property-list');
|
||||||
$subPropList.each(function() {
|
$subPropList.each(function() {
|
||||||
var $additionalItems = $(this).find('li:gt(4)');
|
var limit = $(this).parent().parent().attr("displayLimit");
|
||||||
|
var $additionalItems = $(this).find('li:gt(' + (limit - 1) + ')');
|
||||||
if ( $additionalItems.exists() ) {
|
if ( $additionalItems.exists() ) {
|
||||||
// create container for additional elements
|
// create container for additional elements
|
||||||
var $itemContainer = $('<div class="additionalItems" />').appendTo(this);
|
var $itemContainer = $('<div class="additionalItems" />').appendTo(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue