(function(){var b=function(){var a;if(a=document.querySelector(".form-group.has-error .control-label"))a=a.clientHeight||0,window.scrollBy(0,-a);Liferay.ControlMenu&&(a=Liferay.ControlMenu._namespace+"ControlMenu",a=document.getElementById(a))&&(a=a.offsetHeight||0,window.scrollBy(0,-a))};Liferay.on("form:registered",function(a){a.form&&a.form.formValidator&&AUI().Do.after(b,a.form.formValidator,"focusInvalidField")})})();
