Revize 2208
Přidáno uživatelem David Raška před asi 11 roky(ů)
freenetis/branches/1.1/application/views/js/base.php | ||
---|---|---|
});
|
||
|
||
// validate all form
|
||
$('.form').validate();
|
||
$('.form').validate({
|
||
errorPlacement: function(error, el)
|
||
{
|
||
// if element has multiple inputs in row, insert error message after
|
||
// second input to prevent destroying layout
|
||
if (el.hasClass('join1') || el.hasClass('join2'))
|
||
{
|
||
error.insertAfter(el.parent().find('.join2'));
|
||
}
|
||
else // insert error after first element
|
||
{
|
||
error.insertAfter(el);
|
||
}
|
||
}
|
||
});
|
||
|
||
// gave focus to focus classed objects
|
||
$('.focus').focus();
|
Také k dispozici: Unified diff
Opravy:
- Oprava zobrazeni erroru validatoru u dvojtych polozek ve formulari