add services to be sent to the controller via the Publisher view [ci skip]
This commit is contained in:
parent
6ee257795f
commit
2243778c17
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,6 @@ app.views.Publisher = Backbone.View.extend({
|
||||||
"submit form" : "createStatusMessage"
|
"submit form" : "createStatusMessage"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
initialize : function(){
|
initialize : function(){
|
||||||
this.collection = this.collection || new app.collections.Stream;
|
this.collection = this.collection || new app.collections.Stream;
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -29,7 +28,8 @@ app.views.Publisher = Backbone.View.extend({
|
||||||
"text" : serializedForm["status_message[text]"]
|
"text" : serializedForm["status_message[text]"]
|
||||||
},
|
},
|
||||||
"aspect_ids" : serializedForm["aspect_ids[]"],
|
"aspect_ids" : serializedForm["aspect_ids[]"],
|
||||||
"photos" : serializedForm["photos[]"]
|
"photos" : serializedForm["photos[]"],
|
||||||
|
"services" : serializedForm["services[]"]
|
||||||
}, {
|
}, {
|
||||||
success : function() {
|
success : function() {
|
||||||
app.stream.collection.add(statusMessage.toJSON());
|
app.stream.collection.add(statusMessage.toJSON());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue