mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-17 21:26:22 -04:00
Fixed: gulp jshint warnings (#1873)
This commit is contained in:
committed by
Leonardo Galli
parent
a07ef20410
commit
1f7b03d321
@@ -14,6 +14,7 @@
|
||||
"define": true,
|
||||
"window": true,
|
||||
"document": true,
|
||||
"console": true
|
||||
"console": true,
|
||||
"_": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ module.exports = Marionette.Layout.extend({
|
||||
|
||||
if (options.action === "search") {
|
||||
this.search({term: options.query});
|
||||
} else if (options.action == "discover") {
|
||||
} else if (options.action === "discover") {
|
||||
this.isDiscover = true;
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ module.exports = Marionette.Layout.extend({
|
||||
|
||||
_discover : function(action) {
|
||||
if (this.collection.action === action) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.collection.specialProperty === "special") {
|
||||
|
||||
@@ -39,14 +39,14 @@ module.exports = Backgrid.Cell.extend({
|
||||
break;
|
||||
case "PTP_Approved":
|
||||
addon = "✔";
|
||||
title = "Approved by PTP"
|
||||
title = "Approved by PTP";
|
||||
break;
|
||||
case "HDB_Internal":
|
||||
addon = "⭐️";
|
||||
title = "HDBits Internal";
|
||||
break;
|
||||
}
|
||||
if (addon != "") {
|
||||
if (addon !== "") {
|
||||
html += "<span title='{0}'>{1}</span> ".format(title, addon);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -23,7 +23,7 @@ var view = Marionette.ItemView.extend({
|
||||
initialize : function() {
|
||||
this.model.set('profiles', Profiles);
|
||||
var pathState = this.model.get("pathState");
|
||||
if (pathState == "static") {
|
||||
if (pathState === "static") {
|
||||
this.model.set("pathState", true);
|
||||
} else {
|
||||
this.model.set("pathState", false);
|
||||
|
||||
@@ -43,11 +43,11 @@ var view = Marionette.ItemView.extend({
|
||||
|
||||
onRender : function() {
|
||||
var rootFolder = this.model.get("rootFolderPath");
|
||||
if (rootFolder != "") {
|
||||
if (rootFolder !== "") {
|
||||
//this.ui.rootFolder.val(rootFolder);
|
||||
this.ui.rootFolder.children().filter(function() {
|
||||
//may want to use $.trim in here
|
||||
return $(this).text() == rootFolder;
|
||||
return $(this).text() === rootFolder;
|
||||
}).attr('selected', true);
|
||||
} else {
|
||||
var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);
|
||||
|
||||
Reference in New Issue
Block a user