1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 05:32:23 -05:00
wallabag/themes/default/js/popupForm.js

29 lines
764 B
JavaScript
Raw Normal View History

$(document).ready(function() {
$("#search-form").hide();
function closeSearch() {
$("#search-form").toggle();
$("#search").toggleClass("current");
$("#search-arrow").toggleClass("arrow-down");
}
$("#search").click(function(){
closeSearch();
2014-10-15 10:47:38 -04:00
// 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();
}
2014-10-04 12:44:18 -04:00
$('#searchfield').focus();
});
$("#search-form-close").click(function(){
closeSearch();
});
});