mirror of
https://github.com/Radarr/Radarr
synced 2025-02-22 06:11:09 +00:00
Fixed: gulp jshint warnings (#1873)
This commit is contained in:
parent
a07ef20410
commit
1f7b03d321
6 changed files with 12 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Sonarr",
|
||||
"name": "Radarr",
|
||||
"version": "2.0.0",
|
||||
"description": "Sonarr",
|
||||
"description": "Radarr",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"build": "gulp build",
|
||||
|
@ -9,7 +9,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Sonarr/Sonarr.git"
|
||||
"url": "git://github.com/Radarr/Radarr.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "GPL-3.0",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue