mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-17 08:56:14 +10:00
added filtering by pending
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;"
|
||||
|
||||
Reference in New Issue
Block a user