fixed filter bugs

This commit is contained in:
Brian Smith 2013-02-07 02:38:35 -05:00
parent e542e7cd30
commit c6d3c7487b
3 changed files with 11 additions and 6 deletions

View File

@ -61,7 +61,7 @@
// keyword filter
var keyword = $('#session-keyword-srch').val();
if (keyword != null && keyword.length > 0) {
if (keyword != null && keyword.length > 0 && keyword !== 'Search by Keyword') {
if (queryString.length > 0) {
queryString += "&";
}
@ -260,9 +260,11 @@
}
function clearResults() {
$(CATEGORY.INVITATION).children(':not(:first-child)').remove();
$('table#sessions-invitations').children(':not(:first-child)').remove();
$(CATEGORY.FRIEND).children(':not(:first-child)').remove();
$(CATEGORY.OTHER).children(':not(:first-child)').remove();
$('table#sessions-other').children(':not(:first-child)').remove();
sessionCounts = [0, 0, 0];
}
function deleteSession(evt) {
@ -273,7 +275,7 @@
url: "/api/sessions/" + sessionId
}).done(loadSessions);
}
}renderSession
}
function events() {
//$('#findSession-tableBody').on("click", '[action="delete"]', deleteSession);

View File

@ -88,7 +88,10 @@
// selectedGenres.push($(this).val());
// });
selectedGenres.push($('#genre-list', _form).val());
var selectedVal = $('#genre-list', _form).val();
if (selectedVal != '') {
selectedGenres.push(selectedVal);
}
return selectedGenres;
}

View File

@ -37,7 +37,7 @@
<input id="session-keyword-srch" type="text" name="search" value="Search by Keyword" />
</div>
<div class="right mr10">
<a id="btn-refresh" href="#" style="text-decoration:none;" class="button-grey">REFRESH</a>
<a id="btn-refresh" href="#/findSession" style="text-decoration:none;" class="button-grey">REFRESH</a>
</div>
</div>
</div>