Force refresh Plex.tv token in settings

* Removes the old PlexPy device and fetches a new token
This commit is contained in:
JonnyWong16 2016-09-29 21:21:07 -07:00
parent 73ac4076ac
commit 0b10e68c60
5 changed files with 115 additions and 20 deletions

View file

@ -65,8 +65,8 @@ function confirmAjaxCall(url, msg, loader_msg, callback) {
url: url,
type: 'POST',
complete: function (xhr, status) {
result = $.parseJSON(xhr.responseText);
msg = result.message;
var result = $.parseJSON(xhr.responseText);
var msg = result.message;
if (result.result == 'success') {
showMsg('<i class="fa fa-check"></i> ' + msg, false, true, 5000)
} else {