aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/js/popupForm.js
blob: a32e6e70aa9f0471d659f169c368a43598ea2642 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$(document).ready(function() {

    $("#search-form").hide();

    function closeSearch() {
        $("#search-form").toggle();
        $("#search").toggleClass("current");
        $("#search-arrow").toggleClass("arrow-down");
    }

    $("#search").click(function(){
        closeSearch();
        $('#searchfield').focus();
    });

    $("#search-form-close").click(function(){
        closeSearch();
    });


});