Skip to content

Commit

Permalink
child view update
Browse files Browse the repository at this point in the history
  • Loading branch information
nczirjak-acdh committed Sep 9, 2024
1 parent 5b2e6c1 commit 333e721
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions js/arche_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ jQuery(function ($) {
return {'id': node.id};
},
'success': function (nodes) {
console.log("Success:");
console.log(nodes);

if (nodes.length === 0) {
$('#collection-content-tab').hide(); // Show message for no data
$('#collection-content-tab-content').hide(); // Show message for no data
}
}
},
themes: {stripes: true},
Expand Down
2 changes: 1 addition & 1 deletion templates/helper/helper-displayFields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Field extra type:
{% endif %}
{% elseif(type == 'date' and dateformat) %}
{{ include(arche_core_gui_path ~ '/templates/helper/helper-date.html.twig',
{'value': v, 'dateformat': dateformat } ) }}11
{'value': v, 'dateformat': dateformat } ) }}
{% else %}
<!-- if there is no type defined then simply display the title -->
{% if (v.value) is not empty %}
Expand Down

0 comments on commit 333e721

Please sign in to comment.