QualityCell editing cleanup

This commit is contained in:
Mark McDowall 2013-08-21 08:24:09 -07:00
commit 5327068557
3 changed files with 9 additions and 16 deletions

View file

@ -26,7 +26,7 @@ define(
var templateName = self.template;
self.schema = qualityProfileSchemaCollection.first();
var selected = _.find(self.schema.get('available'), { 'id': self.cell.cellValue.get('quality').id });
var selected = _.find(self.schema.get('available'), { 'id': self.model.get(self.column.get("name")).quality.id });
selected.selected = true;
self.templateFunction = Marionette.TemplateCache.get(templateName);
@ -61,10 +61,6 @@ define(
var command = new Backgrid.Command(e);
model.trigger("backgrid:edited", model, column, command);
},
_setOptions: function (options) {
this.cell = options.cell
}
});
});