contao/test — Issue #829: Form Generator Focus script causes error (wrong element to focus)
Author: importer
Created: 2011-11-29 06:52:03+00:00
State: open
Labels: Defect, frontend

The FORM generator changed the error wrap class internally, but the focussing script in the TPL (form.tpl) still refers to the div.error tag, instead of the new p.error tag. Maybe pass it as a parameter to the template instead?

```
TypeError: Result of expression '$('f2').getElement('div.error')' [null] is not an object.
```

Old Code

```

```

Replacement Code (p.error)

```

```

--- _Originally created by thyon on June 25th, 2009, at 12:55am (ID 829)_