rrs: Add support for filter in recipes page.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2015-01-26 18:26:01 -06:00
parent d14d182d2e
commit 2d3bddc18c

View File

@ -74,7 +74,7 @@
</div>
</div>
<table class="table table-bordered statustable tablesorter table-hover">
<table class="table table-bordered tablesorter table-hover recipestable">
<thead>
<tr>
<th class="recipe_column">Recipe</th>
@ -106,7 +106,16 @@
{% endfor %}
</tbody>
</table>
<script src="{% static "js/uitablefilter.js" %}"></script>
<script src="{% static "js/jquery.tablesorter.js" %}"></script>
{% endblock %}
{% block scripts %}
<script src="{% static "js/uitablefilter.js" %}"></script>
<script>
$(document).ready(function() {
$("#filter").keyup(function() {
var recipestable = $('.recipestable');
$.uiTableFilter(recipestable, this.value);
});
});
</script>
{% endblock %}