diff --git a/productMods/js/individual/individualUtils.js b/productMods/js/individual/individualUtils.js index 29b0b582..04d2ffae 100644 --- a/productMods/js/individual/individualUtils.js +++ b/productMods/js/individual/individualUtils.js @@ -3,6 +3,6 @@ $(document).ready(function(){ // "more"/"less" HTML truncator for showing more or less content in data property core:overview - $('.individual-overview').truncate({max_length: 500}); + $('.overview-value').truncate({max_length: 500}); }); \ No newline at end of file diff --git a/productMods/js/jquery_plugins/jquery.truncator.js b/productMods/js/jquery_plugins/jquery.truncator.js index e68fa6f1..5861d1dd 100644 --- a/productMods/js/jquery_plugins/jquery.truncator.js +++ b/productMods/js/jquery_plugins/jquery.truncator.js @@ -22,7 +22,7 @@ truncated_node.insertAfter(full_node); - findNodeForMore(truncated_node).append(' ('+opts.more+')'); + findNodeForMore(truncated_node).append(' (... '+opts.more+')'); findNodeForLess(full_node).append(' ('+opts.less+')'); truncated_node.find('a:last').click(function() { @@ -39,8 +39,8 @@ // length of 10 would truncate "1234567890" to "12 (…more)". $.fn.truncate.defaults = { max_length: 100, - more: '+', - less: '-' + more: 'more', + less: 'less' }; function recursivelyTruncate(node, max_length) { diff --git a/productMods/templates/freemarker/body/partials/individual/individual-overview.ftl b/productMods/templates/freemarker/body/partials/individual/individual-overview.ftl index 962573ad..13c6b5c3 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-overview.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-overview.ftl @@ -6,8 +6,11 @@ <#if overview?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> <@p.addLinkWithLabel overview editable /> <#list overview.statements as statement> -
${statement.value}
- - <@p.editingLinks "${overview.localName}" statement editable /> +