1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

Search is now fixed too.

This commit is contained in:
Leonardo Galli
2017-02-25 13:17:31 +01:00
parent 21fa96f78f
commit 15acb9d204
3 changed files with 9 additions and 9 deletions
@@ -2,7 +2,7 @@ var $ = require('jquery');
var _ = require('underscore');
var SelectAllCell = require('../../Cells/SelectAllCell');
var Backgrid = require('backgrid');
var MoviesCollection = require('../../Movies/MoviesCollection');
var FullMovieCollection = require('../../Movies/FullMovieCollection');
module.exports = SelectAllCell.extend({
_originalRender : SelectAllCell.prototype.render,
@@ -13,7 +13,7 @@ module.exports = SelectAllCell.extend({
this._originalInit.apply(this, arguments);
var tmdbId = this.model.get('tmdbId');
var existingMovie = MoviesCollection.where({ tmdbId: tmdbId });
var existingMovie = FullMovieCollection.where({ tmdbId: tmdbId });
this.isDuplicate = existingMovie.length > 0 ? true : false;
this.listenTo(this.model, 'change', this._refresh);
@@ -40,4 +40,4 @@ module.exports = SelectAllCell.extend({
_refresh: function() {
this.render();
}
});
});