From eb33e0da95c29626f61030382e94c2887f3a4dbf Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 28 Sep 2011 18:58:12 +0530 Subject: [PATCH] basic list search works --- itf/static/js/insidepage.js | 14 ++++++++++++++ itf/templates/modules/festival/meeting.html | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 4fd37e5..1865d6e 100644 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -117,6 +117,20 @@ $(function() { }); }); + $('#searchListIcon').click(function() { + var term = $('.searchListField').val(); + doListLoading(); + $.getJSON("/m/get_list", { + 'tab_id': $('.innerSelected').attr("data-id"), +// 'sort': sortString, + 'search': term + }, function(data) { + stopListLoading(data); + displayList(data.items); + }); + }); + + $('#triangleUp').click(function() { goPreviousPage(); }); diff --git a/itf/templates/modules/festival/meeting.html b/itf/templates/modules/festival/meeting.html index f31d120..3f57a5d 100644 --- a/itf/templates/modules/festival/meeting.html +++ b/itf/templates/modules/festival/meeting.html @@ -38,7 +38,7 @@
{% for s in sessions %}
-
+
{{ s.title|title }}