From cde36501e626169a54190f5403a035bb45e1bfe7 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sat, 4 Mar 2023 19:11:36 +0100 Subject: [PATCH] Add server id parameter Signed-off-by: Liviu-Mihail Concioiu --- js/src/export.js | 24 +++++++++++++++--------- js/src/home.js | 12 +++++++++--- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/js/src/export.js b/js/src/export.js index 983c66d25a..a90d000add 100644 --- a/js/src/export.js +++ b/js/src/export.js @@ -727,16 +727,22 @@ Export.checkTimeOut = function (timeLimit) { limit = limit + 1; clearTimeout(timeOut); timeOut = setTimeout(function () { - $.get('index.php?route=/export/check-time-out', { 'ajax_request': true }, function (data) { - if (data.message === 'timeout') { - Functions.ajaxShowMessage( - '', - false - ); + $.get('index.php?route=/export/check-time-out', + { + 'ajax_request': true, + 'server': CommonParams.get('server') + }, + function (data) { + if (data.message === 'timeout') { + Functions.ajaxShowMessage( + '', + false + ); + } } - }); + ); }, limit * 1000); }; diff --git a/js/src/home.js b/js/src/home.js index 0a33797c1f..dc7f2fda72 100644 --- a/js/src/home.js +++ b/js/src/home.js @@ -121,9 +121,15 @@ AJAX.registerTeardown('home.js', function () { AJAX.registerOnload('home.js', function () { $('#themesModal').on('show.bs.modal', function () { - $.get('index.php?route=/themes', function (data) { - $('#themesModal .modal-body').html(data.themes); - }); + $.get( + 'index.php?route=/themes', + { + 'server': CommonParams.get('server'), + }, + function (data) { + $('#themesModal .modal-body').html(data.themes); + } + ); }); /**