var pattern;pattern||(pattern={}),pattern.base=function(t){"use strict";return{removeYellowFromInputs:function(){if(navigator.userAgent.toLowerCase().indexOf("chrome")>=0){var e,i=0;e=setInterval((function(){t("input:-webkit-autofill").length>0?(clearInterval(e),t("input:-webkit-autofill").each((function(){var e=t(this).val(),i=t(this).attr("name");t(this).after(this.outerHTML).remove(),t("input[name="+i+"]").val(e)}))):i>20&&clearInterval(e),i++}),50)}}}}(jQuery),jQuery(document).ready((function(t){"use strict";pattern.base.removeYellowFromInputs(),t("input.foswikiFocus").each((function(){t(this).focus()}));var e=0;t(".foswikiSearchResultCount span").livequery((function(){e+=parseInt(t(this).html(),10)})),e>0&&t("#foswikiNumberOfResultsContainer").livequery((function(){t(this).html(" "+foswiki.getMetaTag("TEXT_NUM_TOPICS")+" <b>"+e+" </b>")})),t("input.foswikiFocus").livequery((function(){t(this).focus()})),t("input.foswikiChangeFormButton").on("click",(function(){foswiki.Edit&&(foswiki.Edit.validateSuppressed=!0)})),t("body.patternEditPage input").on("keydown",(function(t){if(13===t.keyCode)return!1}))}));
