Commit 1da01378 authored by fred's avatar fred
Browse files

load search results via ajax

parent 830fd14f
......@@ -51,6 +51,11 @@ $(function() {
return true;
}
});
$("#search-form").on('submit', function(event) {
event.preventDefault();
$(this).addClass('loading');
loadPage($(this).attr('action') + '/?' + $(this).serialize());
});
$(".tabs").each(function() {
var self = $(this);
var about= $($(this).attr("data-tab-about"));
......
......@@ -6,7 +6,7 @@
{% block title %}Recherche{% endblock %}
{% block nav %}
<div class="padded">
<form method="get" action="." class="big center">
<form method="get" action="." class="big center" id="search-form">
{{ form.as_table }}<button class="icon-search"></button>
</form>
{% if query %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment