Sha256: 1c2fc4ac7f4371a6db3c4bfd0cb8cd139c5637d741ce9e9811ea14726ba7aa8b
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
class TentStatus.Views.NewFollowingForm extends Backbone.View initialize: (options = {}) -> @parentView = options.parentView @$el.on 'submit', @submit submit: (e) => e.preventDefault() entity = ($ '[name=entity]', @$el).val() following = new TentStatus.Models.Following { entity: entity } following.once 'sync', => TentStatus.Collections.followings.unshift(following) @parentView.render() following.save() false
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tent-status-0.0.1 | assets/javascripts/views/new_following_form.js.coffee |