Skip to content

Commit

Permalink
Merge pull request #18214 from liviuconcioiu/18211
Browse files Browse the repository at this point in the history
Fix #18211 - Add server id parameter
  • Loading branch information
MauricioFauth committed Mar 4, 2023
2 parents 12b924d + cde3650 commit ec8a6a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
24 changes: 15 additions & 9 deletions js/src/export.js
Expand Up @@ -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(
'<div class="alert alert-danger" role="alert">' +
Messages.strTimeOutError +
'</div>',
false
);
$.get('index.php?route=/export/check-time-out',
{
'ajax_request': true,
'server': CommonParams.get('server')
},
function (data) {
if (data.message === 'timeout') {
Functions.ajaxShowMessage(
'<div class="alert alert-danger" role="alert">' +
Messages.strTimeOutError +
'</div>',
false
);
}
}
});
);
}, limit * 1000);
};

Expand Down
12 changes: 9 additions & 3 deletions js/src/home.js
Expand Up @@ -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);
}
);
});

/**
Expand Down

0 comments on commit ec8a6a4

Please sign in to comment.