Skip to content

Commit

Permalink
Small fix for truncating licenses (vufind-org#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha authored Mar 27, 2020
1 parent 8017dde commit 0c6eed2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion themes/finna2/js/finna-image-paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,13 @@ finna.imagePaginator = (function imagePaginator() {

if (!_.isList) {
$('.image-details-container').addClass('hidden');
$('.image-details-container[data-img-index="' + imagePopup.attr('index') + '"]').removeClass('hidden');
var details = $('.image-details-container[data-img-index="' + imagePopup.attr('index') + '"]');
details.removeClass('hidden');
var license = details.find('.truncate-field');
if (license.length && !license.hasClass('truncated')) {
license.removeClass('truncate-done');
finna.layout.initTruncate(details);
}
}
_.imageDetail.html(imagePopup.data('description'));

Expand Down

0 comments on commit 0c6eed2

Please sign in to comment.