var SPUpdSemaphor=0;SobiPro.jQuery(document).ready(function(){SobiPro.jQuery('#SobiProUpdates').on('shown',function(){if(SPUpdSemaphor==0){SPUpdSemaphor=1;SobiPro.jQuery('#SPVerUpd').html(SobiPro.Txt('CHECKING_FOR_UPDATES')+'&nbsp;<img src="../media/sobipro/adm/progress.gif"/>');SobiPro.jQuery.ajax({url:SobiProAdmUrl.replace('%task%','extensions.updates'),dataType:'json',success:function(a){"use strict";if(a.err){SobiPro.jQuery('#SPVerUpd').html('<span style="color:#C60000; font-weight:bold;">'+a.err+'</span>')}else{var b='';for(var x in a){var c=a[x].name+' ('+a[x].type+') ';if(a[x].update=='false'){var d='&nbsp;<span style="color:#008000;">'+a[x].update_txt+'</span>'}else{var d='&nbsp;<span style="color:#C60000; font-weight: bold">'+a[x].update_txt+'</span>'}b+='<div class="spUpdatesApp">'+c+'</div><div class="spUpdatesState"> '+d+'</div>'}SobiPro.jQuery('#SPVerUpd').html(b+'<div class="clearfix"></div>')}}})}})});
