forked from extern/egroupware
need to wait for jQuery to be loaded
This commit is contained in:
parent
0389960e32
commit
3bace4e0d7
@ -12,6 +12,7 @@
|
|||||||
/**
|
/**
|
||||||
* Handle HTML5 validation on tabs
|
* Handle HTML5 validation on tabs
|
||||||
*/
|
*/
|
||||||
|
egw_LAB.wait(function() {
|
||||||
jQuery().ready(function() {
|
jQuery().ready(function() {
|
||||||
jQuery('.tab_body :input').bind('invalid', function(e) {
|
jQuery('.tab_body :input').bind('invalid', function(e) {
|
||||||
// Activate the appropriate tab
|
// Activate the appropriate tab
|
||||||
@ -25,6 +26,8 @@ jQuery().ready(function() {
|
|||||||
// focus on input with tabindex=1
|
// focus on input with tabindex=1
|
||||||
jQuery('input[tabindex="1"],select[tabindex="1"],textarea[tabindex="1"]').focus();
|
jQuery('input[tabindex="1"],select[tabindex="1"],textarea[tabindex="1"]').focus();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function submitit(form,name)
|
function submitit(form,name)
|
||||||
{
|
{
|
||||||
//alert(name+' pressed');
|
//alert(name+' pressed');
|
||||||
|
Loading…
Reference in New Issue
Block a user