Skip to content

Instantly share code, notes, and snippets.

@pier-oliviert
Forked from cmer/gist:1732423
Created February 3, 2012 21:07
Show Gist options
  • Save pier-oliviert/1732607 to your computer and use it in GitHub Desktop.
Save pier-oliviert/1732607 to your computer and use it in GitHub Desktop.
class @GroupActionMenuHandler
bind: ->
$(document).on 'click', '.group-action-menu a', this.selectMenuItem
selectMenuItem: (event) ->
id = $(e.target).data('id')
alert 'hello'
false
<script>
$(document).ready(function() {
groupActionMenuHandler = new GroupActionMenuHandler();
groupActionMenuHandler.bind()
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment