Author: pyaschenko
Date: 2008-08-22 11:17:47 -0400 (Fri, 22 Aug 2008)
New Revision: 10179
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
https://jira.jboss.org/jira/browse/RF-4264
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-08-22
14:24:33 UTC (rev 10178)
+++
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-08-22
15:17:47 UTC (rev 10179)
@@ -818,12 +818,12 @@
{
for (var i=0;i<this.selectedItems.length; i++)
{
- if (!this.selectedItems.object)
+ if (!this.selectedItems[i].object)
{
- var obj = items[this.selectedItems.text];
+ var obj = items[this.selectedItems[i].text];
if (obj)
{
- this.selectedItems.object = obj;
+ this.selectedItems[i].object = obj;
this.isSelectedItemsUpdated = true;
}
}
@@ -869,7 +869,7 @@
var p = 0;
while (p<this.startPosition)
{
- if (tokens.indexOf(this.element.value[p])!=-1) index++;
+ if (tokens.indexOf(this.element.value.charAt(p))!=-1) index++;
p++;
}
}