mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
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…
Reference in New Issue
Block a user