Skip to content

Instantly share code, notes, and snippets.

@procload
Created July 24, 2012 19:44
Show Gist options
  • Save procload/3172190 to your computer and use it in GitHub Desktop.
Save procload/3172190 to your computer and use it in GitHub Desktop.
class window.Multiselect extends CoffeeCup
default_options:
debug: true
init: ->
@create()
@events()
create: ->
@log 'Create'
$(".filter-students").kendoDropDownList
change: (e) ->
selected = this.value()
change_audience(selected)
$('.multiselect.all-students').multiselect({
className: 'all-students'
})
$('.multiselect.my-students').multiselect({
className: 'my-students'
})
events: ->
@log 'Events'
check_empty: (event) =>
change_audience: (audience) =>
@log 'Change Audience'
@log audience
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment