Skip to content

Commit

Permalink
Hide the other opened box (Bib, Abs), if any (alshedivat#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
qomhmd authored and pecey committed Jan 27, 2023
1 parent 735d245 commit 84e5d68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/common.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
$(document).ready(function() {
$('a.abstract').click(function() {
$(this).parent().parent().find(".abstract.hidden").toggleClass('open');
$(this).parent().parent().find(".bibtex.hidden.open").toggleClass('open');
});
$('a.bibtex').click(function() {
$(this).parent().parent().find(".bibtex.hidden").toggleClass('open');
$(this).parent().parent().find(".abstract.hidden.open").toggleClass('open');
});
$('a').removeClass('waves-effect waves-light');
});

0 comments on commit 84e5d68

Please sign in to comment.