jQuery(document).ready(function($){$('div.foswikiAttachments')
.each(function(index,el){var count=$(el).find('table.foswikiTable').attr('rows').length-1;var countStr=" <span class='foswikiSmall'>"
+count+"<\/span>";$(el).find('.patternAttachmentHeader').each(function(index,el){$(el).append(countStr);});});var searchResultsCount=0;$('.foswikiSearchResultCount span').livequery(function(){searchResultsCount+=parseInt($(this).html());});if(searchResultsCount>0){$('#foswikiNumberOfResultsContainer').livequery(function(){$(this).html(' '+foswiki.getMetaTag('TEXT_NUM_TOPICS')+' <b>'+searchResultsCount+' </b>');});}
$('input.foswikiFocus').livequery(function(){$(this).focus();});$('input.foswikiChangeFormButton').livequery('click',function(){if(foswiki.Edit){foswiki.Edit.validateSuppressed=true;}});$('body.patternEditPage input').livequery('keydown',function(event){if(event.keyCode==13){return false;}});});
