Hide the other opened box (Bib, Abs), if any (#1002)

This commit is contained in:
Mohammad Qodrati 2022-12-25 22:17:08 +03:30 committed by GitHub
parent 37ccb2e434
commit 5e48424e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
});