]> git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/default/js/popupForm.js
eb6d1ae203657e17d94c6519a22c8c324ef8463c
[github/wallabag/wallabag.git] / themes / default / js / popupForm.js
1 $(document).ready(function() {
2
3 $("#search-form").hide();
4
5 function closeSearch() {
6 $("#search-form").toggle();
7 $("#search").toggleClass("current");
8 $("#search-arrow").toggleClass("arrow-down");
9 }
10
11 $("#search").click(function(){
12 closeSearch();
13 // if other popup is already shown
14 if ($("#bagit-form").length != 0) {
15 $("#bagit").removeClass("active-current");
16 $('#content').removeClass("opacity03");
17 $("#bagit").removeClass("current");
18 $("#bagit-arrow").removeClass("arrow-down");
19 $("#bagit-form").hide();
20 }
21 $('#searchfield').focus();
22 });
23
24 $("#search-form-close").click(function(){
25 closeSearch();
26 });
27
28
29 });