app/helpers/tasks_helper.rb
# Sidebar checkbox control for filtering tasks by due date -- used for
# pending and assigned views only.
#----------------------------------------------------------------------------
Sidebar checkbox control for filtering tasks by due date -- used for
pending and assigned views only.
Sidebar checkbox control for filtering tasks by due date -- used for pending and assigned views only .
def task_filter_checkbox(view, filter, count)
    name = "filter_by_task_#{view}"
    checked = (session[name] ? session[name].split(",").include?(filter.to_s) : count > 0)
    onclick = remote_function(
      :url      => { :action => :filter, :view => view },
      :with     => "'filter='+this.value+'&checked='+this.checked",
      :loading  => "$('loading').show()",
      :complete => "$('loading').hide()"
    )
    check_box_tag("filters[]", filter, checked, :onclick => onclick, :id => "filters_#{filter.to_s.underscore}")
  end
def task_filter_checkbox ( view , filter , count ) name = "filter_by_task_#{view}" checked = ( session [ name ] ? session [ name ] . split ( "," ) . include? ( filter . to_s ) : count > 0 ) onclick = remote_function ( :url => { :action => :filter , :view => view } , :with => "'filter='+this.value+'&checked='+this.checked" , :loading => "$('loading').show()" , :complete => "$('loading').hide()" ) check_box_tag ( "filters[]" , filter , checked , :onclick => onclick , :id => "filters_#{filter.to_s.underscore}" ) end
Sidebar checkbox control for filtering tasks by due date -- used for
pending and assigned views only.
Sidebar checkbox control for filtering tasks by due date -- used for pending and assigned views only .
view
<not_specific>
filter
<not_specific>
count
<not_specific>