mirror of
https://github.com/apache/struts.git
synced 2026-09-11 00:29:40 +00:00
Rename startSearchFromInput to match Dojo's _startSearchFromInput
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@528320 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+10
-10
@@ -443,20 +443,20 @@ dojo.widget.defineWidget(
|
||||
dojo.debug("[" + (this.widgetId ? this.widgetId : "unknown") + "] " + text);
|
||||
},
|
||||
|
||||
startSearchFromInput: function() {
|
||||
_startSearchFromInput: function() {
|
||||
var searchStr = this.textInputNode.value;
|
||||
if(this.loadOnType) {
|
||||
if(searchStr.length >= this.loadMinimum) {
|
||||
var nuHref = this.dataUrl + (this.dataUrl.indexOf("?") > -1 ? "&" : "?");
|
||||
nuHref += this.name + '=' + searchStr;
|
||||
this.dataProvider.getData(nuHref);
|
||||
this.startSearch(searchStr);
|
||||
} else {
|
||||
this._hideResultList();
|
||||
}
|
||||
if(searchStr.length >= this.loadMinimum) {
|
||||
var nuHref = this.dataUrl + (this.dataUrl.indexOf("?") > -1 ? "&" : "?");
|
||||
nuHref += this.name + '=' + searchStr;
|
||||
this.dataProvider.getData(nuHref);
|
||||
this._startSearch(searchStr);
|
||||
} else {
|
||||
this._hideResultList();
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.startSearch(searchStr);
|
||||
this._startSearch(searchStr);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user