Skip to content

Instantly share code, notes, and snippets.

@nathanscott
Created July 5, 2012 23:52
Show Gist options
  • Save nathanscott/3057192 to your computer and use it in GitHub Desktop.
Save nathanscott/3057192 to your computer and use it in GitHub Desktop.
Funways.Views.Groups ||= {}
class Funways.Views.Groups.NewView extends Backbone.View
template: JST['backbone/templates/groups/new']
id: 'new_group'
events:
'click a.save' : 'save'
'change input:file' : 'putImage'
'click .actions a.message' : 'newMessage'
'click .join a, click .leave a' : 'toggleGroup'
keyboardEvents:
'n' : 'newMessage'
'j' : 'toggleGroup'
'command+s, ctrl+s' : 'save'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment