diff options
-rwxr-xr-x | themes/baggy/_head.twig | 1 | ||||
-rw-r--r-- | themes/baggy/_search-form.twig | 22 | ||||
-rwxr-xr-x | themes/default/_head.twig | 1 | ||||
-rw-r--r-- | themes/default/js/popupForm.js | 20 |
4 files changed, 26 insertions, 18 deletions
diff --git a/themes/baggy/_head.twig b/themes/baggy/_head.twig index 04898d85..be11673f 100755 --- a/themes/baggy/_head.twig +++ b/themes/baggy/_head.twig | |||
@@ -12,4 +12,5 @@ | |||
12 | <script src="{{ poche_url }}themes/{{theme}}/js/jquery.cookie.js"></script> | 12 | <script src="{{ poche_url }}themes/{{theme}}/js/jquery.cookie.js"></script> |
13 | <script src="{{ poche_url }}themes/{{theme}}/js/init.js"></script> | 13 | <script src="{{ poche_url }}themes/{{theme}}/js/init.js"></script> |
14 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> | 14 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> |
15 | <script src="{{ poche_url }}themes/default/js/popupForm.js"></script> | ||
15 | <script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script> | 16 | <script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script> |
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig index 1fd4154e..b8ac3bfa 100644 --- a/themes/baggy/_search-form.twig +++ b/themes/baggy/_search-form.twig | |||
@@ -1,21 +1,7 @@ | |||
1 | <div id="search-form" class="messages info"> | 1 | <div id="search-form" class="messages info"> |
2 | <form method="get" action="index.php"> | 2 | <form method="get" action="index.php"> |
3 | <input type="hidden" name="view" value="search"></input> | 3 | <input type="hidden" name="view" value="search"></input> |
4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" /> | 4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" /> |
5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> | 5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> |
6 | </form> | 6 | </form> |
7 | </div> | 7 | </div> \ No newline at end of file |
8 | <script type="text/javascript"> | ||
9 | $(document).ready(function() { | ||
10 | |||
11 | $("#search-form").hide(); | ||
12 | |||
13 | $("#search").click(function(){ | ||
14 | $("#search-form").toggle(); | ||
15 | $("#search").toggleClass("current"); | ||
16 | $("#search-arrow").toggleClass("arrow-down"); | ||
17 | }); | ||
18 | |||
19 | |||
20 | }); | ||
21 | </script> \ No newline at end of file | ||
diff --git a/themes/default/_head.twig b/themes/default/_head.twig index ffbfc22e..8c939e30 100755 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig | |||
@@ -11,3 +11,4 @@ | |||
11 | <script src="{{ poche_url }}themes/default/js/autoClose.js"></script> | 11 | <script src="{{ poche_url }}themes/default/js/autoClose.js"></script> |
12 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> | 12 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> |
13 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> | 13 | <script src="{{ poche_url }}themes/default/js/saveLink.js"></script> |
14 | <script src="{{ poche_url }}themes/default/js/popupForm.js"></script> \ No newline at end of file | ||
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 | ||