New: Manual Import episodes

This commit is contained in:
Mark McDowall
2015-03-03 16:42:37 -08:00
parent 29ca1bc9da
commit 6dd22e7dcb
66 changed files with 1766 additions and 117 deletions

View File

@@ -1,5 +1,11 @@
<ul>
{{#each this}}
<li>{{this}}</li>
<li>
{{#if reason}}
{{reason}}
{{else}}
{{this}}
{{/if}}
</li>
{{/each}}
</ul>

View File

@@ -1,6 +1,6 @@
var _ = require('underscore');
var Backgrid = require('backgrid');
var Marionette = require('marionette');
var _ = require('underscore');
var ProfileSchemaCollection = require('../../Settings/Profile/ProfileSchemaCollection');
module.exports = Backgrid.CellEditor.extend({
@@ -59,7 +59,11 @@ module.exports = Backgrid.CellEditor.extend({
};
model.set(column.get('name'), newQuality);
model.save();
if (this.column.get('saveAfterEdit')) {
model.save();
}
model.trigger('backgrid:edited', model, column, new Backgrid.Command(e));
},

View File

@@ -7,9 +7,13 @@ module.exports = NzbDroneCell.extend({
var templateName = this.column.get('template') || this.template;
this.templateFunction = Marionette.TemplateCache.get(templateName);
var data = this.cellValue.toJSON();
var html = this.templateFunction(data);
this.$el.html(html);
this.$el.empty();
if (this.cellValue) {
var data = this.cellValue.toJSON();
var html = this.templateFunction(data);
this.$el.html(html);
}
this.delegateEvents();
return this;

View File

@@ -156,11 +156,12 @@ td.episode-status-cell, td.quality-cell, td.history-quality-cell, td.progress-ce
}
.queue-actions-cell {
min-width : 55px;
width : 55px;
min-width : 65px;
width : 65px;
text-align : right !important;
i {
.clickable();
margin-left : 1px;
margin-right : 1px;
}