Author: abelevich
Date: 2008-04-23 10:00:42 -0400 (Wed, 23 Apr 2008)
New Revision: 8096
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
Log:
http://jira.jboss.com/jira/browse/RF-2859
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
===================================================================
---
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-04-23
14:00:26 UTC (rev 8095)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-04-23
14:00:42 UTC (rev 8096)
@@ -82,6 +82,15 @@
this.doSelectItem(this.findItemBySubstr(this.selectedItem.innerHTML.unescapeHTML()));
}
+
+ var items = this.getItems();
+ if (items.length != 0) {
+ this.listParent.show();
+ if (this.iframe) {
+ this.iframe.show();
+ }
+ }
+
if (this.selectFirstOnUpdate) {
var curItems = this.getItems();
if (curItems.length != 0) {
@@ -92,14 +101,7 @@
}
}
}
-
- var items = this.getItems();
- if (items.length != 0) {
- this.listParent.show();
- if (this.iframe) {
- this.iframe.show();
- }
- }
+
this.listParent.fire("rich:onlistcall", {});
},