Skip to content
Snippets Groups Projects
Commit bf2b6ebf authored by Laurent's avatar Laurent
Browse files

hotline #44903 : on record image cache generation, add automatic retry if fail

parent 99bbda60
Branches
Tags
1 merge request!1798Hotline#44903 bokeh cache des images
////////////////////////////////////////////////////////////////////////////////////
// Constitution du cache des images
///////////////////////////////////////////////////////////////////////////////////
function makeCacheImages(sUrl)
{
if(!sUrl) sUrl=baseUrl+'/admin/systeme/makecacheimages';
else sUrl=baseUrl+sUrl;
$('#bloc_restantes').show();
$('#restantes').load(sUrl);
}
\ No newline at end of file
// See module/admin/controllers/SystemeController.php makecacheimagesAction()
function makeCacheImages(sUrl) {
if (!sUrl)
sUrl = baseUrl+'/admin/systeme/makecacheimages';
else
sUrl = baseUrl+sUrl;
$('#bloc_restantes').show();
$('#restantes').load(sUrl,
function(response, status, xhr) {
if (status == "error") {
$('#restantes').append('.');
setTimeout(function() { makeCacheImages(); },
1);
}
});
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment