You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/02/24 11:26:18 UTC

svn commit: r511245 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js

Author: bommel
Date: Sat Feb 24 02:26:17 2007
New Revision: 511245

URL: http://svn.apache.org/viewvc?view=rev&rev=511245
Log:
removed jsfstate from suggest items

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js?view=diff&rev=511245&r1=511244&r2=511245
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js Sat Feb 24 02:26:17 2007
@@ -76,6 +76,10 @@
     var responseText = request.responseText;
     if (responseText.match(this.REGEX_SUCCSESS)) {
       responseText = responseText.substring(responseText.indexOf(Tobago.Updater.CODE_SUCCESS) + 20);
+      var jsfStateIndex = responseText.indexOf('<script type');
+      if (jsfStateIndex > 0) {
+        responseText = responseText.substring(0, jsfStateIndex);
+      }
 //      LOG.debug("responseText = " + responseText);
       this.updateChoices(responseText);
       setTimeout(Tobago.bind(this, "resetWidth"), 60);