mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Add proxy warning to dashboard
This commit is contained in:
@@ -99,6 +99,7 @@ function loadJackettSettings() {
|
||||
doNotify(value, "danger", "glyphicon glyphicon-alert", false);
|
||||
})
|
||||
|
||||
proxyWarning(data.proxy_url);
|
||||
reloadIndexers();
|
||||
});
|
||||
}
|
||||
@@ -1221,4 +1222,15 @@ function bindUIButtons() {
|
||||
doNotify("Request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
|
||||
});
|
||||
});
|
||||
|
||||
$('#jackett-proxy-url').on('input', function () {
|
||||
proxyWarning($(this).val());
|
||||
});
|
||||
}
|
||||
|
||||
function proxyWarning(input) {
|
||||
if (input.trim() != "")
|
||||
$('#proxy-warning').show();
|
||||
else
|
||||
$('#proxy-warning').hide();
|
||||
}
|
||||
|
Reference in New Issue
Block a user