New: Show download protocol in Queue

This commit is contained in:
Mark McDowall
2015-01-31 00:24:09 -08:00
parent cd79826aad
commit e641611662
13 changed files with 42 additions and 10 deletions

View File

@@ -16,6 +16,10 @@ define(
'click .x-grab' : '_grab'
},
ui: {
'import' : '.x-import'
},
render: function () {
this.$el.empty();
@@ -69,6 +73,8 @@ define(
data: JSON.stringify(this.model.toJSON())
});
$(this.ui.import).spinForPromise(promise);
promise.success(function () {
//find models that have the same series id and episode ids and remove them
self.model.trigger('destroy', self.model);

View File

@@ -12,6 +12,7 @@ define(
'Activity/Queue/QueueActionsCell',
'Activity/Queue/TimeleftCell',
'Activity/Queue/ProgressCell',
'Release/ProtocolCell',
'Shared/Grid/Pager'
], function (Marionette,
Backgrid,
@@ -24,6 +25,7 @@ define(
QueueActionsCell,
TimeleftCell,
ProgressCell,
ProtocolCell,
GridPager) {
return Marionette.Layout.extend({
template: 'Activity/Queue/QueueLayoutTemplate',
@@ -65,6 +67,11 @@ define(
cell : QualityCell,
sortable : false
},
{
name : 'protocol',
label : 'Protocol',
cell : ProtocolCell
},
{
name : 'timeleft',
label : 'Timeleft',

View File

@@ -1,6 +1,6 @@
<div class="row">
<div class="row">
<div class="col-md-12 table-responsive">
<div id="x-queue"/>
<div id="x-queue" class="queue"/>
</div>
</div>