Fixed: Additional jshint warnings (#1921)

James White 7 years ago committed by Leonardo Galli
parent d773da60e8
commit 7a06ead806

@ -1,4 +1,4 @@
var NzbDroneCell = require('../../Cells/NzbDroneCell'); var NzbDroneCell = require('../../Cells/NzbDroneCell');
module.exports = NzbDroneCell.extend({ module.exports = NzbDroneCell.extend({
className : 'title-source-cell', className : 'title-source-cell',
@ -6,7 +6,7 @@ module.exports = NzbDroneCell.extend({
render : function() { render : function() {
this.$el.empty(); this.$el.empty();
var link = undefined; var link;
var sourceTitle = this.model.get("sourceType"); var sourceTitle = this.model.get("sourceType");
var sourceId = this.model.get("sourceId"); var sourceId = this.model.get("sourceId");
@ -30,7 +30,7 @@ module.exports = NzbDroneCell.extend({
var a = "{0}"; var a = "{0}";
if (link) { if (link) {
a = "<a href='"+link+"' target='_blank'>{0}</a>" a = "<a href='"+link+"' target='_blank'>{0}</a>";
} }
this.$el.html(a.format(sourceTitle)); this.$el.html(a.format(sourceTitle));

@ -1,4 +1,4 @@
var _ = require('underscore'); var _ = require('underscore');
var $ = require('jquery'); var $ = require('jquery');
var vent = require('vent'); var vent = require('vent');
var AppLayout = require('../AppLayout'); var AppLayout = require('../AppLayout');
@ -33,7 +33,7 @@ module.exports = Marionette.ItemView.extend({
}, },
onShow : function() { onShow : function() {
if (this.release.get("mappingResult") == "wrongYear") { if (this.release.get("mappingResult") === "wrongYear") {
this.ui.titleMapping.hide(); this.ui.titleMapping.hide();
} else { } else {
this.ui.yearMapping.hide(); this.ui.yearMapping.hide();
@ -42,14 +42,14 @@ module.exports = Marionette.ItemView.extend({
_configureTemplateHelpers : function() { _configureTemplateHelpers : function() {
this.templateHelpers.release = this.release.toJSON(); this.templateHelpers.release = this.release.toJSON();
this.templateHelpers.languages = LanguageCollection.toJSON() this.templateHelpers.languages = LanguageCollection.toJSON();
}, },
_forceDownload : function() { _forceDownload : function() {
this.ui.indicator.show(); this.ui.indicator.show();
var self = this; var self = this;
if (this.release.get("mappingResult") == "wrongYear") { if (this.release.get("mappingResult") === "wrongYear") {
var altYear = new AltYearModel({ var altYear = new AltYearModel({
movieId : this.release.get("suspectedMovieId"), movieId : this.release.get("suspectedMovieId"),
year : this.release.get("year") year : this.release.get("year")

@ -1,11 +1,11 @@
var Backbone = require('backbone'); var Backbone = require('backbone');
module.exports = Backbone.Model.extend({ module.exports = Backbone.Model.extend({
downloadOk : function() { downloadOk : function() {
return this.get("mappingResult") == "success" || this.get("mappingResult") == "successLenientMapping"; return this.get("mappingResult") === "success" || this.get("mappingResult") === "successLenientMapping";
}, },
forceDownloadOk : function() { forceDownloadOk : function() {
return this.get("mappingResult") == "wrongYear" || this.get("mappingResult") == "wrongTitle"; return this.get("mappingResult") === "wrongYear" || this.get("mappingResult") === "wrongTitle";
} }
}); });
Loading…
Cancel
Save