$("#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();
});
$bagit.toggleClass("active-current");
- //only if bagiti link is not presented on page
+ //only if bag-it link is not presented on page
if ( $bagit.length === 0 ) {
if ( event !== 'undefined' && event ) {
$bagitForm.css( {position:"absolute", top:event.pageY, left:event.pageX-200});
}
}
+ if ($("#search-form").length != 0) {
+ $("#search").removeClass("current");
+ $("#search-arrow").removeClass("arrow-down");
+ $("#search-form").hide();
+ }
$bagitForm.toggle();
$('#content').toggleClass("opacity03");
if (url !== 'undefined' && url) {