]> wagnertech.de Git - kivitendo-erp.git/blobdiff - js/common.js
kivi.validate_form: generische Formvalidierung anhand von data-Attributen an Elementen
[kivitendo-erp.git] / js / common.js
index 84e0b26dcb5cf86f3fe049de7357fbd403c5a1d5..285b02fef203f5dc165732c0b73a4d33580ade65 100644 (file)
@@ -235,11 +235,7 @@ $(function () {
       }
     }
 
-    // scroll to the active element. jQuery.focus doesn't do this
-    // TODO: find out how to reliably frame the active element
-    window.scrollTo(0, document.activeElement.getBoundingClientRect().top);
-
-    // legacy. sone forms install these
+    // legacy. some forms install these
     if (typeof fokus == 'function') { fokus(); return; }
     if (focus_by_name('cursor_fokus')) return;
   }, 0);