X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fjs%2FpopupForm.js;h=eb6d1ae203657e17d94c6519a22c8c324ef8463c;hb=48fb171d7a64dbd1036f9e17cbf4c14304483817;hp=a32e6e70aa9f0471d659f169c368a43598ea2642;hpb=f2cc1db1a85ff90d750217629138e6f3a3488396;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js index a32e6e70..eb6d1ae2 100644 --- a/themes/default/js/popupForm.js +++ b/themes/default/js/popupForm.js @@ -10,6 +10,14 @@ $(document).ready(function() { $("#search").click(function(){ closeSearch(); + // if other popup is already shown + if ($("#bagit-form").length != 0) { + $("#bagit").removeClass("active-current"); + $('#content').removeClass("opacity03"); + $("#bagit").removeClass("current"); + $("#bagit-arrow").removeClass("arrow-down"); + $("#bagit-form").hide(); + } $('#searchfield').focus(); });