Author: musachy Date: Thu Apr 12 19:16:38 2007 New Revision: 528320 URL: http://svn.apache.org/viewvc?view=rev&rev=528320 Log: Rename startSearchFromInput to match Dojo's _startSearchFromInput
Modified: struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js Modified: struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js?view=diff&rev=528320&r1=528319&r2=528320 ============================================================================== --- struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js (original) +++ struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js Thu Apr 12 19:16:38 2007 @@ -443,20 +443,20 @@ 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); } } });