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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jaz-3
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') {