static/dashboard/app/forms/bs-has-error.js
function getClosestFormName(element) {
                    var parent = element.parent();
                    if(parent[0].tagName.toLowerCase() === 'form') {
                        return parent.attr('name') || null;
                    } else {
                        return getClosestFormName(parent);
                    }
                }
function getClosestFormName(element) {
                    var parent = element.parent();
                    if(parent[0].tagName.toLowerCase() === 'form') {
                        return parent.attr('name') || null;
                    } else {
                        return getClosestFormName(parent);
                    }
                }
function getClosestFormName ( element ) { var parent = element . parent ( ) ; if ( parent [ 0 ] . tagName . toLowerCase ( ) === 'form' ) { return parent . attr ( 'name' ) || null ; } else { return getClosestFormName ( parent ) ; } }
find parent form
find parent form