Skip to content

Commit

Permalink
Merge pull request #2222 from thostetler/fix-author-list
Browse files Browse the repository at this point in the history
Fix author list semi-colon issue
  • Loading branch information
shinyichen committed Dec 3, 2021
2 parents 3c450a6 + 91731d2 commit 78c9c71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/js/widgets/abstract/templates/abstract_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ <h2 class="s-abstract-title">
{{/each}}

{{#if hasMoreAuthors}}
<li class="author extra-dots">
; <a data-target="more-authors" title="Show all authors">...</a>
<li class="author">
;
<span class="extra-dots">
<a data-target="more-authors" title="Show all authors">...</a>
</span>
</li>
{{/if}}

Expand Down
2 changes: 1 addition & 1 deletion src/js/widgets/abstract/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ define([

toggleMoreAuthors: function() {
this.$('.author.extra').toggleClass('hide');
this.$('.author.extra-dots').toggleClass('hide');
this.$('.author .extra-dots').toggleClass('hide');
if (this.$('.author.extra').hasClass('hide')) {
this.$('#toggle-more-authors').text('Show all authors');
} else {
Expand Down

0 comments on commit 78c9c71

Please sign in to comment.