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();
}
}

View File

@ -34,8 +34,8 @@
<link rel="stylesheet" type="text/css" href="../bootstrap/bootstrap.min.css?changed=2017083001">
<link rel="stylesheet" type="text/css" href="../animate.css?changed=2017083001">
<link rel="stylesheet" type="text/css" href="../custom.css?changed=20190331" media="only screen and (min-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../custom_mobile.css?changed=20190331" media="only screen and (max-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../custom.css?changed=20190401" media="only screen and (min-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../custom_mobile.css?changed=20190401" media="only screen and (max-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../css/jquery.dataTables.min.css?changed=2017083001">
<link rel="stylesheet" type="text/css" href="../css/bootstrap-multiselect.css?changed=2017083001" />
<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css?changed=2017083001">
@ -671,6 +671,6 @@
</script>
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
<script type="text/javascript" src="../custom.js?changed=20190331"></script>
<script type="text/javascript" src="../custom.js?changed=20190401"></script>
</body>
</html>