mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Fixes to search engine
Changed the search parameter from POST to GET. Also, adapted the Baggy theme.
This commit is contained in:
parent
a33a3d2afb
commit
2c4e7a1cea
7 changed files with 100 additions and 23 deletions
|
@ -9,4 +9,5 @@
|
|||
<li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
|
||||
</ul>
|
||||
{% include '_pocheit-form.twig' %}
|
||||
{% include '_search-form.twig' %}
|
||||
|
||||
|
|
23
themes/default/_search-form.twig
Normal file
23
themes/default/_search-form.twig
Normal file
|
@ -0,0 +1,23 @@
|
|||
<div id="search-form" class="messages info">
|
||||
<form method="get" action="index.php">
|
||||
<p>
|
||||
<input type="hidden" name="view" value="search"></input>
|
||||
<label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" />
|
||||
<input type="submit" value="{% trans "Search" %} !"></input>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#search-form").hide();
|
||||
|
||||
$("#search").click(function(){
|
||||
$("#search-form").toggle();
|
||||
$("#search").toggleClass("current");
|
||||
$("#search-arrow").toggleClass("arrow-down");
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
|
@ -12,28 +12,7 @@
|
|||
{% include '_menu.twig' %}
|
||||
{% endblock %}
|
||||
{% block precontent %}
|
||||
<div id="search-form" class="messages info">
|
||||
<form method="post" action="index.php?view=search">
|
||||
<p>
|
||||
<label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" />
|
||||
<input type="submit" value="{% trans "Search" %} !"></input>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#search-form").hide();
|
||||
|
||||
$("#search").click(function(){
|
||||
$("#search-form").toggle();
|
||||
$("#search").toggleClass("current");
|
||||
$("#search-arrow").toggleClass("arrow-down");
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
{% include '_sorting.twig' %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue