##// END OF EJS Templates
Remove residual tabs
Jonathan Frederic -
Show More
@@ -193,9 +193,9 b' function(WidgetManager, Underscore, Backbone){'
193 },
193 },
194
194
195 save_changes: function(callbacks) {
195 save_changes: function(callbacks) {
196 // Push this model's state to the back-end
196 // Push this model's state to the back-end
197 //
197 //
198 // This invokes a Backbone.Sync.
198 // This invokes a Backbone.Sync.
199 this.save(this.changedAttributes(), {patch: true, callbacks: callbacks});
199 this.save(this.changedAttributes(), {patch: true, callbacks: callbacks});
200 },
200 },
201
201
@@ -256,11 +256,11 b' function(WidgetManager, Underscore, Backbone){'
256 //
256 //
257 // -given a model and (optionally) a view name if the view name is
257 // -given a model and (optionally) a view name if the view name is
258 // not given, it defaults to the model's default view attribute.
258 // not given, it defaults to the model's default view attribute.
259
259
260 // TODO: this is hacky, and makes the view depend on this cell attribute and widget manager behavior
260 // TODO: this is hacky, and makes the view depend on this cell attribute and widget manager behavior
261 // it would be great to have the widget manager add the cell metadata
261 // it would be great to have the widget manager add the cell metadata
262 // to the subview without having to add it here.
262 // to the subview without having to add it here.
263 options = options || {};
263 options = options || {};
264 options.cell = this.options.cell;
264 options.cell = this.options.cell;
265 var child_view = this.model.widget_manager.create_view(child_model, options);
265 var child_view = this.model.widget_manager.create_view(child_model, options);
266 this.child_views[child_model.id] = child_view;
266 this.child_views[child_model.id] = child_view;
General Comments 0
You need to be logged in to leave comments. Login now