diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-08 21:59:40 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-08 21:59:40 +0200 |
commit | bf20b541ae2263d6cba95d01df7ea751615e012a (patch) | |
tree | d6088962b2a43794484fedd82e529d64906b5d57 /themes/default/js | |
parent | 2c534c184da7ce68478225b1c000729213b85540 (diff) | |
parent | 3945335f3988c7eb9d5bbf9e9428b2cd6c173a2e (diff) | |
download | wallabag-bf20b541ae2263d6cba95d01df7ea751615e012a.tar.gz wallabag-bf20b541ae2263d6cba95d01df7ea751615e012a.tar.zst wallabag-bf20b541ae2263d6cba95d01df7ea751615e012a.zip |
Merge pull request #621 from wallabag/fix-613
can't close search popup with the cross picture #613
Diffstat (limited to 'themes/default/js')
-rw-r--r-- | themes/default/js/popupForm.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js new file mode 100644 index 00000000..06be3f0c --- /dev/null +++ b/themes/default/js/popupForm.js | |||
@@ -0,0 +1,20 @@ | |||
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 | }); | ||
14 | |||
15 | $("#search-form-close").click(function(){ | ||
16 | closeSearch(); | ||
17 | }); | ||
18 | |||
19 | |||
20 | }); \ No newline at end of file | ||