aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/js/popupForm.js
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-04-08 21:58:44 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-04-08 21:58:44 +0200
commit3945335f3988c7eb9d5bbf9e9428b2cd6c173a2e (patch)
treef02291d5bd80a0d7fbe542ea191fcd6f902db75a /themes/default/js/popupForm.js
parent5fe19480977a5b063769d1a3b3dce168873d4c8a (diff)
downloadwallabag-3945335f3988c7eb9d5bbf9e9428b2cd6c173a2e.tar.gz
wallabag-3945335f3988c7eb9d5bbf9e9428b2cd6c173a2e.tar.zst
wallabag-3945335f3988c7eb9d5bbf9e9428b2cd6c173a2e.zip
can't close search popup with the cross picture #613
Diffstat (limited to 'themes/default/js/popupForm.js')
-rw-r--r--themes/default/js/popupForm.js20
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