aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/_search-form.twig
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-03-23 23:52:05 +0100
committertcit <tcit@tcit.fr>2014-03-23 23:52:05 +0100
commit2c4e7a1cea0e692b39055eec7a8ebf142839f120 (patch)
tree0e3a04e3a07c523c256dcd569fa99a5dd174b725 /themes/baggy/_search-form.twig
parenta33a3d2afb6a861e194599973e31e5e448617296 (diff)
downloadwallabag-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/baggy/_search-form.twig')
-rw-r--r--themes/baggy/_search-form.twig21
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig
new file mode 100644
index 00000000..1fd4154e
--- /dev/null
+++ b/themes/baggy/_search-form.twig
@@ -0,0 +1,21 @@
1<div id="search-form" class="messages info">
2<form method="get" action="index.php">
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" />
5 <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
6</form>
7</div>
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