mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 10:36:57 -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
|
@ -541,10 +541,10 @@ $(document).ready(function() {
|
|||
function OAuthSuccessCallback(authToken) {
|
||||
$.post('save_pms_token', { token: authToken, client_id: $('#pms_client_id').val() }, function () {
|
||||
$("#pms_token_validated").val(1);
|
||||
getServerOptions();
|
||||
});
|
||||
$("#pms-token-status").html('<i class="fa fa-check"></i> Authentication successful.').fadeIn('fast');
|
||||
authenticated = true;
|
||||
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