Fixed: Force grabbing some delayed releases

Closes #984
pull/4/head
Mark McDowall 9 years ago
parent 8c211364e2
commit 4fa4b3507e

@ -1,6 +1,7 @@
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var vent = require('../../vent');
var TemplatedCell = require('../../Cells/TemplatedCell');
var RemoveFromQueueView = require('./RemoveFromQueueView');
@ -40,11 +41,12 @@ module.exports = TemplatedCell.extend({
_grab : function() {
var self = this;
var data = _.omit(this.model.toJSON(), 'series', 'episode');
var promise = $.ajax({
url : window.NzbDrone.ApiRoot + '/queue/grab',
type : 'POST',
data : JSON.stringify(this.model.toJSON())
data : JSON.stringify(data)
});
this.$(this.ui.grab).spinForPromise(promise);

Loading…
Cancel
Save