mirror of
https://github.com/apache/struts.git
synced 2026-09-12 17:15:02 +00:00
Rename startSearchFromInput to match Dojo's _startSearchFromInput
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@528327 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -15058,19 +15058,19 @@ self.log(ex);
|
||||
}
|
||||
},log:function(text){
|
||||
dojo.debug("["+(this.widgetId?this.widgetId:"unknown")+"] "+text);
|
||||
},startSearchFromInput:function(){
|
||||
},_startSearchFromInput:function(){
|
||||
var _c8d=this.textInputNode.value;
|
||||
if(this.loadOnType){
|
||||
if(_c8d.length>=this.loadMinimum){
|
||||
var _c8e=this.dataUrl+(this.dataUrl.indexOf("?")>-1?"&":"?");
|
||||
_c8e+=this.name+"="+_c8d;
|
||||
this.dataProvider.getData(_c8e);
|
||||
this.startSearch(_c8d);
|
||||
this._startSearch(_c8d);
|
||||
}else{
|
||||
this._hideResultList();
|
||||
}
|
||||
}else{
|
||||
this.startSearch(_c8d);
|
||||
this._startSearch(_c8d);
|
||||
}
|
||||
}});
|
||||
dojo.provide("dojo.widget.DropdownContainer");
|
||||
|
||||
+10
-10
@@ -24437,20 +24437,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