Revision d692d8f8 snf-astakos-app/astakos/im/static/im/js/quotas.js
b/snf-astakos-app/astakos/im/static/im/js/quotas.js | ||
---|---|---|
5 | 5 |
$('.quotas-form .group').each(function() { |
6 | 6 |
if( $(this).hasClass(id) ) { |
7 | 7 |
|
8 |
$(this).appendTo('.visible'); |
|
8 |
//$(this).appendTo('.visible');
|
|
9 | 9 |
$(this).show('slow'); |
10 |
console.info('lala'); |
|
10 |
|
|
11 | 11 |
$(this).find('input').first().focus(); |
12 | 12 |
console.info($(this).find('input').first()); |
13 |
console.info('boo'); |
|
13 |
|
|
14 |
|
|
14 | 15 |
} |
15 | 16 |
}); |
17 |
//egg = $('.visible').find('.'+id).find('input').first(); |
|
18 |
|
|
16 | 19 |
if ($('.quotas-form .with-info .with-errors input[type="text"]')){ |
17 | 20 |
$(this)[0].focus(); |
18 | 21 |
} |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
//setTimeout(function() { document.getElementById("city").focus(); }, 100); |
|
19 | 27 |
|
20 | 28 |
} |
21 | 29 |
|
... | ... | |
77 | 85 |
|
78 | 86 |
// hide relevant fieldset |
79 | 87 |
$(this).parents('.group').hide('slow', function() { |
80 |
$(this).appendTo('.not-visible'); |
|
88 |
//$(this).appendTo('.not-visible'); |
|
89 |
$(this).hide(); |
|
81 | 90 |
}); |
82 | 91 |
|
83 | 92 |
group_class = $(this).parents('.group').attr('class').replace('group ', ''); |
... | ... | |
333 | 342 |
|
334 | 343 |
}); |
335 | 344 |
|
336 |
goToByScroll("top"); |
|
345 |
//goToByScroll("top");
|
|
337 | 346 |
$('.quotas-form .form-row.with-errors input[type="text"]').first().focus(); |
338 | 347 |
|
339 | 348 |
|
Also available in: Unified diff