mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Fix callback in wrong spot
This commit is contained in:
parent
1d86187f79
commit
21a1870884
1 changed files with 6 additions and 4 deletions
|
@ -1180,7 +1180,6 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$('.save-button').click(function() {
|
$('.save-button').click(function() {
|
||||||
if ($("#pms_identifier").val() == "") {
|
if ($("#pms_identifier").val() == "") {
|
||||||
//showMsg('<i class="fa fa-exclamation-circle"></i> Please verify your server.', false, true, 2000, true)
|
|
||||||
verifyServer(function () { saveSettings() });
|
verifyServer(function () { saveSettings() });
|
||||||
} else {
|
} else {
|
||||||
saveSettings();
|
saveSettings();
|
||||||
|
@ -1292,13 +1291,15 @@ $(document).ready(function() {
|
||||||
$("#pms-verify").html('<i class="fa fa-check"></i>');
|
$("#pms-verify").html('<i class="fa fa-check"></i>');
|
||||||
$('#pms-verify').fadeIn('fast');
|
$('#pms-verify').fadeIn('fast');
|
||||||
$("#pms-ip-group").removeClass("has-error");
|
$("#pms-ip-group").removeClass("has-error");
|
||||||
|
|
||||||
|
if (_callback) {
|
||||||
|
_callback();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$("#pms-verify").html('<i class="fa fa-close"></i>');
|
$("#pms-verify").html('<i class="fa fa-close"></i>');
|
||||||
$('#pms-verify').fadeIn('fast');
|
$('#pms-verify').fadeIn('fast');
|
||||||
$("#pms-ip-group").addClass("has-error");
|
$("#pms-ip-group").addClass("has-error");
|
||||||
}
|
showMsg('<i class="fa fa-exclamation-circle"></i> Could not verify your server.', false, true, 2000, true)
|
||||||
if (_callback) {
|
|
||||||
_callback();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1306,6 +1307,7 @@ $(document).ready(function() {
|
||||||
$("#pms-verify").html('<i class="fa fa-close"></i>');
|
$("#pms-verify").html('<i class="fa fa-close"></i>');
|
||||||
$('#pms-verify').fadeIn('fast');
|
$('#pms-verify').fadeIn('fast');
|
||||||
$("#pms-ip-group").addClass("has-error");
|
$("#pms-ip-group").addClass("has-error");
|
||||||
|
showMsg('<i class="fa fa-exclamation-circle"></i> Could not verify your server.', false, true, 2000, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue