Sha256: 99cd8a634e72d52751a6c1034f753a7e76d749adcf4613bef38bd57a59df4d1b
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
Volontariat.EditCommunityRoute = Ember.Route.extend model: (params) -> @controllerFor('edit_community').set 'slug', params.slug if Volontariat.User.current() Ember.$.getJSON( "/api/v1/users/#{Volontariat.User.current().id}/organizations.json" ).then (json) => @controllerFor('edit_community').set 'organizations', json.organizations Ember.$.getJSON("/api/v1/communities/#{params.slug}").then (json) => $('#community_organization_id').val(json.community.organization_id) @controllerFor('edit_community').set 'name', json.community.name @controllerFor('edit_community').set 'text', json.community.text json.brainstorming
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voluntary_feedback-0.1.0 | app/assets/javascripts/voluntary_feedback/routes/community/edit_community_route.js.coffee |