added filtering by pending

This commit is contained in:
Mark Ryall
2012-10-12 13:23:23 +10:00
parent a286618274
commit 5b1abb9bb2
3 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -61,10 +61,11 @@ $ ->
toggle_hidden = (show, selector) ->
if show
$(selector).show()
$(selector).removeClass("hidden")
else
$(selector).hide()
$(selector).addClass("hidden")
$('#show-past').change -> toggle_hidden(this.checked, '.past')
$('#show-current').change -> toggle_hidden(this.checked, '.current')
$('#show-future').change -> toggle_hidden(this.checked, '.future')
$('#show-pending').change -> toggle_hidden(this.checked, '.pending')
@@ -1,4 +1,4 @@
div.hero-unit
div.hero-unit.pending.hidden
div.row.person
div.span4
img src="/assets/silhouette.png" width=300
+3 -1
View File
@@ -14,7 +14,9 @@ form.form-inline
label.span1.checkbox
input type="checkbox" id="show-current" checked="true" current
label.span1.checkbox
input type="checkbox" future
input type="checkbox" id="show-future" future
label.span1.checkbox
input type="checkbox" id="show-pending" pending
input.span2.search-query id="show-future" type="text" placeholder="search"
div id="add_new" style="display:none;"