Skip to content

Commit 2659934

Browse files
qomhmdfolguinch
authored andcommitted
Hide the other opened box (Bib, Abs), if any (alshedivat#1002)
1 parent 6670ff9 commit 2659934

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/js/common.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
$(document).ready(function() {
22
$('a.abstract').click(function() {
33
$(this).parent().parent().find(".abstract.hidden").toggleClass('open');
4+
$(this).parent().parent().find(".bibtex.hidden.open").toggleClass('open');
45
});
56
$('a.bibtex').click(function() {
67
$(this).parent().parent().find(".bibtex.hidden").toggleClass('open');
8+
$(this).parent().parent().find(".abstract.hidden.open").toggleClass('open');
79
});
810
$('a').removeClass('waves-effect waves-light');
911
});

0 commit comments

Comments
 (0)