aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-01-26 18:26:01 -0600
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:51 +1200
commit79f2e5463042da5c1570386646300f250c80cee5 (patch)
tree558ce5f61bc566e17fa39aff74348489ae2742ea /templates
parent0b6ff699b51945a888c1a858560842e8ea0ba002 (diff)
downloadopenembedded-core-contrib-79f2e5463042da5c1570386646300f250c80cee5.tar.gz
rrs: Add support for filter in recipes page.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/rrs/recipes.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html
index c935249966..c41d014e2f 100644
--- a/templates/rrs/recipes.html
+++ b/templates/rrs/recipes.html
@@ -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>
+{% endblock %}
+{% block scripts %}
<script src="{% static "js/uitablefilter.js" %}"></script>
-<script src="{% static "js/jquery.tablesorter.js" %}"></script>
+<script>
+$(document).ready(function() {
+ $("#filter").keyup(function() {
+ var recipestable = $('.recipestable');
+ $.uiTableFilter(recipestable, this.value);
+ });
+});
+</script>
{% endblock %}