mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
this was checking if labels was an object, which failed when findParentLabel(el.parentNode) was called, it just returned 'this' instead on validation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41639 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4a3d1308cb
commit
285e6aa8f9
@ -172,7 +172,7 @@ function findParentLabel(el){
|
||||
if(el.className){
|
||||
if(el.className.indexOf('field') == 0){
|
||||
labels = el.getElementsByTagName('label');
|
||||
if(labels && typeof(labels) == "object"){
|
||||
if(labels){
|
||||
var left = findIndexOf(labels,'left');
|
||||
var right = findIndexOf(labels,'right');
|
||||
if(left){
|
||||
|
Loading…
Reference in New Issue
Block a user