mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Make sure token is saved before populating server dropdown list
This commit is contained in:
parent
b6cb946ae2
commit
b598e9fc0c
3 changed files with 2 additions and 3 deletions
|
@ -2757,10 +2757,10 @@ $(document).ready(function() {
|
|||
function OAuthSuccessCallback(authToken) {
|
||||
$.post('save_pms_token', { token: authToken, client_id: $('#pms_client_id').val() }, function() {
|
||||
showMsg('<i class="fa fa-check"></i> Saved new Plex.tv token.', false, true, 5000);
|
||||
getServerOptions();
|
||||
});
|
||||
$("#pms-token-status").html('<i class="fa fa-check"></i> Authentication successful.').fadeIn('fast');
|
||||
$("#token_error_bar").hide();
|
||||
getServerOptions(authToken);
|
||||
}
|
||||
function OAuthErrorCallback() {
|
||||
$("#pms-token-status").html('<i class="fa fa-exclamation-circle"></i> Error communicating with Plex.tv.').fadeIn('fast');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue