mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Additional jshint warnings (#1921)
This commit is contained in:
parent
d773da60e8
commit
7a06ead806
@ -1,4 +1,4 @@
|
||||
var NzbDroneCell = require('../../Cells/NzbDroneCell');
|
||||
var NzbDroneCell = require('../../Cells/NzbDroneCell');
|
||||
|
||||
module.exports = NzbDroneCell.extend({
|
||||
className : 'title-source-cell',
|
||||
@ -6,7 +6,7 @@ module.exports = NzbDroneCell.extend({
|
||||
render : function() {
|
||||
this.$el.empty();
|
||||
|
||||
var link = undefined;
|
||||
var link;
|
||||
var sourceTitle = this.model.get("sourceType");
|
||||
var sourceId = this.model.get("sourceId");
|
||||
|
||||
@ -30,7 +30,7 @@ module.exports = NzbDroneCell.extend({
|
||||
var a = "{0}";
|
||||
|
||||
if (link) {
|
||||
a = "<a href='"+link+"' target='_blank'>{0}</a>"
|
||||
a = "<a href='"+link+"' target='_blank'>{0}</a>";
|
||||
}
|
||||
|
||||
this.$el.html(a.format(sourceTitle));
|
||||
|
@ -1,4 +1,4 @@
|
||||
var _ = require('underscore');
|
||||
var _ = require('underscore');
|
||||
var $ = require('jquery');
|
||||
var vent = require('vent');
|
||||
var AppLayout = require('../AppLayout');
|
||||
@ -33,7 +33,7 @@ module.exports = Marionette.ItemView.extend({
|
||||
},
|
||||
|
||||
onShow : function() {
|
||||
if (this.release.get("mappingResult") == "wrongYear") {
|
||||
if (this.release.get("mappingResult") === "wrongYear") {
|
||||
this.ui.titleMapping.hide();
|
||||
} else {
|
||||
this.ui.yearMapping.hide();
|
||||
@ -42,14 +42,14 @@ module.exports = Marionette.ItemView.extend({
|
||||
|
||||
_configureTemplateHelpers : function() {
|
||||
this.templateHelpers.release = this.release.toJSON();
|
||||
this.templateHelpers.languages = LanguageCollection.toJSON()
|
||||
this.templateHelpers.languages = LanguageCollection.toJSON();
|
||||
},
|
||||
|
||||
_forceDownload : function() {
|
||||
this.ui.indicator.show();
|
||||
var self = this;
|
||||
|
||||
if (this.release.get("mappingResult") == "wrongYear") {
|
||||
if (this.release.get("mappingResult") === "wrongYear") {
|
||||
var altYear = new AltYearModel({
|
||||
movieId : this.release.get("suspectedMovieId"),
|
||||
year : this.release.get("year")
|
||||
|
@ -1,11 +1,11 @@
|
||||
var Backbone = require('backbone');
|
||||
var Backbone = require('backbone');
|
||||
|
||||
module.exports = Backbone.Model.extend({
|
||||
downloadOk : function() {
|
||||
return this.get("mappingResult") == "success" || this.get("mappingResult") == "successLenientMapping";
|
||||
return this.get("mappingResult") === "success" || this.get("mappingResult") === "successLenientMapping";
|
||||
},
|
||||
|
||||
forceDownloadOk : function() {
|
||||
return this.get("mappingResult") == "wrongYear" || this.get("mappingResult") == "wrongTitle";
|
||||
return this.get("mappingResult") === "wrongYear" || this.get("mappingResult") === "wrongTitle";
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user