You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2011/03/08 17:54:22 UTC

svn commit: r1079433 - /ofbiz/trunk/framework/images/webapp/images/selectall.js

Author: jaz
Date: Tue Mar  8 16:54:22 2011
New Revision: 1079433

URL: http://svn.apache.org/viewvc?rev=1079433&view=rev
Log:
resetting the autocomp variable between ajax calls to that when no results are returned the previous results (from a different lookup) are not displayed

Modified:
    ofbiz/trunk/framework/images/webapp/images/selectall.js

Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=1079433&r1=1079432&r2=1079433&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Tue Mar  8 16:54:22 2011
@@ -410,6 +410,9 @@ function ajaxAutoCompleter(areaCsvString
                     async: false,
                     data: {term : request.term},
                     success: function(data) {
+                    	// reset the autocomp field
+                    	autocomp = undefined;
+                    	
                         //update the result div
                         jQuery("#" + div + "_auto").html(data);
                         if (typeof autocomp != 'undefined') {