Fix form autodiscover for bind tags

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@545813 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Musachy Barroso
2007-06-09 23:17:28 +00:00
parent d33a0c935f
commit c721b256b2
@@ -107,8 +107,8 @@ dojo.widget.defineWidget(
}
}
if(dojo.string.isBlank(this.href) && dojo.string.isBlank(this.formId)) {
//no href and no formId, we must be inside a form
if(dojo.string.isBlank(this.formId)) {
//no formId, see if we are inside a form
this.formNode = dojo.dom.getFirstAncestorByTag(this.domNode, "form");
} else {
this.formNode = dojo.byId(this.formId);
@@ -117,10 +117,6 @@ dojo.widget.defineWidget(
if(this.formNode && dojo.string.isBlank(this.href)) {
this.href = this.formNode.action;
}
if(!dojo.string.isBlank(this.formId)) {
this.formNode = dojo.byId(this.formId);
}
},
highlight : function() {