basic list search works

This commit is contained in:
Sanj 2011-09-28 18:58:12 +05:30
parent ddbc8d77f5
commit eb33e0da95
2 changed files with 15 additions and 1 deletions

View File

@ -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() { $('#triangleUp').click(function() {
goPreviousPage(); goPreviousPage();
}); });

View File

@ -38,7 +38,7 @@
<div> <div>
{% for s in sessions %} {% for s in sessions %}
<div class="session"> <div class="session">
<div class="sessionTitle"> <div class="sessionTitle toggleNext">
{{ s.title|title }} {{ s.title|title }}
</div> </div>
<div class="sessionChild"> <div class="sessionChild">