From 5e48424e58ea71652e35b3db89dccc98b8a067eb Mon Sep 17 00:00:00 2001 From: Mohammad Qodrati Date: Sun, 25 Dec 2022 22:17:08 +0330 Subject: [PATCH] Hide the other opened box (Bib, Abs), if any (#1002) --- assets/js/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/common.js b/assets/js/common.js index f7c41c2..5ffcb50 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -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'); });