'use strict';dotclear.dbSpamsCount=function(){var params={f:'getSpamsCount',xd_check:dotclear.nonce,};$.get('services.php',params,function(data){if($('rsp[status=failed]',data).length>0){window.console.log('Dotclear REST server error');}else{var nb=$('rsp>count',data).attr('ret');if(nb!=dotclear.dbSpamsCount_Counter){var icon=$('#dashboard-main #icons p a[href="comments.php?status=-2"]');if(icon.length){var nb_label=icon.children('span.db-icon-title-spam');if(nb_label.length){nb_label.text(nb);}}else{if(nb!=''){var icon=$('#dashboard-main #icons p a[href="comments.php"]');if(icon.length){var xml=' <a href="comments.php?status=-2"><span class="db-icon-title-spam">'+nb+'</span></a>';icon.after(xml);}}}
dotclear.dbSpamsCount_Counter=nb;}}});};$(function(){var icon_spam=$('#dashboard-main #icons p a[href="comments.php"]');if(icon_spam.length){dotclear.dbSpamsCount();dotclear.dbSpamsCount_Timer=setInterval(dotclear.dbSpamsCount,60*1000);}});