mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
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:
+2
-6
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user