mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
QualityCell editing cleanup
This commit is contained in:
parent
7c915bd522
commit
5327068557
3 changed files with 9 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue