Fix proxy javascript error

This commit is contained in:
flightlevel
2019-04-01 19:40:35 +11:00
parent 2712ff432b
commit b469c2e764
2 changed files with 8 additions and 5 deletions

View File

@@ -99,8 +99,8 @@ function loadJackettSettings() {
doNotify(value, "danger", "glyphicon glyphicon-alert", false);
})
proxyWarning(data.proxy_url);
reloadIndexers();
proxyWarning(data.proxy_url);
});
}
@@ -1229,8 +1229,11 @@ function bindUIButtons() {
}
function proxyWarning(input) {
if (input.trim() != "")
if (input != null && input.trim() !== "") {
$('#proxy-warning').show();
}
else
{
$('#proxy-warning').hide();
}
}