diff options
author | tcit <tcit@tcit.fr> | 2014-03-23 23:52:05 +0100 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-03-23 23:52:05 +0100 |
commit | 2c4e7a1cea0e692b39055eec7a8ebf142839f120 (patch) | |
tree | 0e3a04e3a07c523c256dcd569fa99a5dd174b725 /themes/default | |
parent | a33a3d2afb6a861e194599973e31e5e448617296 (diff) | |
download | wallabag-2c4e7a1cea0e692b39055eec7a8ebf142839f120.tar.gz wallabag-2c4e7a1cea0e692b39055eec7a8ebf142839f120.tar.zst wallabag-2c4e7a1cea0e692b39055eec7a8ebf142839f120.zip |
Fixes to search engine
Changed the search parameter from POST to GET.
Also, adapted the Baggy theme.
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/_menu.twig | 1 | ||||
-rw-r--r-- | themes/default/_search-form.twig | 23 | ||||
-rwxr-xr-x | themes/default/home.twig | 21 |
3 files changed, 24 insertions, 21 deletions
diff --git a/themes/default/_menu.twig b/themes/default/_menu.twig index e2644b0f..0e7dd0a7 100644 --- a/themes/default/_menu.twig +++ b/themes/default/_menu.twig | |||
@@ -9,4 +9,5 @@ | |||
9 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | 9 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> |
10 | </ul> | 10 | </ul> |
11 | {% include '_pocheit-form.twig' %} | 11 | {% include '_pocheit-form.twig' %} |
12 | {% include '_search-form.twig' %} | ||
12 | 13 | ||
diff --git a/themes/default/_search-form.twig b/themes/default/_search-form.twig new file mode 100644 index 00000000..74f420d0 --- /dev/null +++ b/themes/default/_search-form.twig | |||
@@ -0,0 +1,23 @@ | |||
1 | <div id="search-form" class="messages info"> | ||
2 | <form method="get" action="index.php"> | ||
3 | <p> | ||
4 | <input type="hidden" name="view" value="search"></input> | ||
5 | <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" /> | ||
6 | <input type="submit" value="{% trans "Search" %} !"></input> | ||
7 | </p> | ||
8 | </form> | ||
9 | </div> | ||
10 | <script type="text/javascript"> | ||
11 | $(document).ready(function() { | ||
12 | |||
13 | $("#search-form").hide(); | ||
14 | |||
15 | $("#search").click(function(){ | ||
16 | $("#search-form").toggle(); | ||
17 | $("#search").toggleClass("current"); | ||
18 | $("#search-arrow").toggleClass("arrow-down"); | ||
19 | }); | ||
20 | |||
21 | |||
22 | }); | ||
23 | </script> \ No newline at end of file | ||
diff --git a/themes/default/home.twig b/themes/default/home.twig index e3e8c6af..b6185df1 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -12,28 +12,7 @@ | |||
12 | {% include '_menu.twig' %} | 12 | {% include '_menu.twig' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | {% block precontent %} | 14 | {% block precontent %} |
15 | <div id="search-form" class="messages info"> | ||
16 | <form method="post" action="index.php?view=search"> | ||
17 | <p> | ||
18 | <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" /> | ||
19 | <input type="submit" value="{% trans "Search" %} !"></input> | ||
20 | </p> | ||
21 | </form> | ||
22 | </div> | ||
23 | <script type="text/javascript"> | ||
24 | $(document).ready(function() { | ||
25 | 15 | ||
26 | $("#search-form").hide(); | ||
27 | |||
28 | $("#search").click(function(){ | ||
29 | $("#search-form").toggle(); | ||
30 | $("#search").toggleClass("current"); | ||
31 | $("#search-arrow").toggleClass("arrow-down"); | ||
32 | }); | ||
33 | |||
34 | |||
35 | }); | ||
36 | </script> | ||
37 | {% include '_sorting.twig' %} | 16 | {% include '_sorting.twig' %} |
38 | {% endblock %} | 17 | {% endblock %} |
39 | {% block content %} | 18 | {% block content %} |