'use strict';dotclear.dbStoreUpdate=(store,icon)=>{dotclear.jsonServicesPost('checkStoreUpdate',(data)=>{if(!data.check){return;}
icon.children('a').attr('href',`${icon.children('a').attr('href')}#update`);icon.children('a').children('img').attr('src',icon.children('a').children('img').attr('src').replaceAll(/([^/]+)(\..*)$/g,'$1-update$2'),);icon.children('a').children('.db-icon-descr').append('<br>').append(`<strong>${data.ret}</strong`);dotclear.badge(icon,{id:`mu-${store}`,value:data.nb,icon:true,type:'info',left:true,});},{store},);};dotclear.ready(()=>{dotclear.jsonServicesGet('checkCoreUpdate',(data)=>{if(data.check){$('#content h2').after(data.ret);dotclear.outgoingLinks('#ajax-update a');}});if($('#dashboard-main #icons p #icon-process-Plugins-fav').length){const plugins_db_icon=$('#dashboard-main #icons p #icon-process-Plugins-fav').parent();dotclear.dbStoreUpdate('plugins',plugins_db_icon);}});