You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by he...@apache.org on 2008/06/14 14:48:21 UTC

svn commit: r667794 - /struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js

Author: hermanns
Date: Sat Jun 14 05:48:21 2008
New Revision: 667794

URL: http://svn.apache.org/viewvc?rev=667794&view=rev
Log:
WW-2536 Autocompleted element don't publish topics when it changed
o applied patch by Stanislav Malishevskiy

Modified:
    struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js

Modified: struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js?rev=667794&r1=667793&r2=667794&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js (original)
+++ struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js Sat Jun 14 05:48:21 2008
@@ -495,7 +495,8 @@
 			return false;
 		}
 	}
-	this.selectedResult = [tgt.getAttribute("resultName"), tgt.getAttribute("resultValue")];
+    this.textInputNode.value="";
+    this.selectedResult = [tgt.getAttribute("resultName"), tgt.getAttribute("resultValue")];
 	this.setAllValues(tgt.getAttribute("resultName"), tgt.getAttribute("resultValue"));
 	if (!evt.noHide) {
 		this._hideResultList();