Author: vmolotkov
Date: 2007-12-29 10:38:45 -0500 (Sat, 29 Dec 2007)
New Revision: 5109
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
fix layout
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2007-12-29
14:54:35 UTC (rev 5108)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2007-12-29
15:38:45 UTC (rev 5109)
@@ -74,6 +74,9 @@
},
setValue : function(toSetOnly) {
+ if (!this.comboList.selectedItem) {
+ return;
+ }
var value = this.comboList.selectedItem.innerHTML;
if (toSetOnly) {
this.field.value = value;
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2007-12-29 14:54:35 UTC
(rev 5108)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2007-12-29 15:38:45 UTC
(rev 5109)
@@ -28,8 +28,10 @@
</input>
<input type="text" class="rich_cb_width rich_cb_strut
rich_cb_font">
</input>
- <div id="list#{clientId}" style="display:none"
class="rich-combobox-list">
- <f:call name="encodeItems"/>
+ <div id="listParent#{clientId}" style="display:none"
class="rich-combobox-list">
+ <div id="list#{clientId}">
+ <f:call name="encodeItems"/>
+ </div>
</div>
</div>
Show replies by date