Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
commit
7d360523dc
@ -764,16 +764,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') {
|
||||
ajaxShowMessage(
|
||||
'<div class="alert alert-danger" role="alert">' +
|
||||
window.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') {
|
||||
ajaxShowMessage(
|
||||
'<div class="alert alert-danger" role="alert">' +
|
||||
window.Messages.strTimeOutError +
|
||||
'</div>',
|
||||
false
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
}, limit * 1000);
|
||||
};
|
||||
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
import $ from 'jquery';
|
||||
import { CommonParams } from './common';
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
|
||||
*/
|
||||
export const ThemesManager = {
|
||||
handleEvent: () => {
|
||||
$.get('index.php?route=/themes', data => {
|
||||
$.get('index.php?route=/themes', { 'server': CommonParams.get('server') }, data => {
|
||||
$('#themesModal .modal-body').html(data.themes);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user