mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Add Plex token check and error message to settings page
This commit is contained in:
parent
bb1d324ac2
commit
323a13ae17
3 changed files with 36 additions and 11 deletions
|
@ -71,8 +71,9 @@ function refreshTab() {
|
|||
function showMsg(msg, loader, timeout, ms, error) {
|
||||
var feedback = $("#ajaxMsg");
|
||||
var update = $("#updatebar");
|
||||
if (update.is(":visible")) {
|
||||
var height = update.height() + 35;
|
||||
var token_error = $("#token_error_bar");
|
||||
if (update.is(":visible") || token_error.is(":visible")) {
|
||||
var height = (update.is(":visible") ? update.height() : 0) + (token_error.is(":visible") ? token_error.height() : 0) + 35;
|
||||
feedback.css("bottom", height + "px");
|
||||
} else {
|
||||
feedback.removeAttr("style");
|
||||
|
@ -131,8 +132,9 @@ function doAjaxCall(url, elem, reload, form, showMsg, callback) {
|
|||
// Set Message
|
||||
var feedback = (showMsg) ? $("#ajaxMsg") : $();
|
||||
var update = $("#updatebar");
|
||||
if (update.is(":visible")) {
|
||||
var height = update.height() + 35;
|
||||
var token_error = $("#token_error_bar");
|
||||
if (update.is(":visible") || token_error.is(":visible")) {
|
||||
var height = (update.is(":visible") ? update.height() : 0) + (token_error.is(":visible") ? token_error.height() : 0) + 35;
|
||||
feedback.css("bottom", height + "px");
|
||||
} else {
|
||||
feedback.removeAttr("style");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue