need to wait for jQuery to be loaded

This commit is contained in:
Ralf Becker 2014-02-06 11:01:32 +00:00
parent 0389960e32
commit 3bace4e0d7

View File

@ -12,7 +12,8 @@
/**
* Handle HTML5 validation on tabs
*/
jQuery().ready(function() {
egw_LAB.wait(function() {
jQuery().ready(function() {
jQuery('.tab_body :input').bind('invalid', function(e) {
// Activate the appropriate tab
var tab = jQuery(this).parentsUntil('.tab_body').last();
@ -24,7 +25,9 @@ jQuery().ready(function() {
});
// focus on input with tabindex=1
jQuery('input[tabindex="1"],select[tabindex="1"],textarea[tabindex="1"]').focus();
});
});
function submitit(form,name)
{
//alert(name+' pressed');