Add server id parameter
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
parent
12b924d4e3
commit
cde36501e6
@ -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);
|
||||
};
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user