Author: vmolotkov
Date: 2008-02-01 14:44:10 -0500 (Fri, 01 Feb 2008)
New Revision: 5770
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
handling of default message is corrected
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 2008-02-01
16:59:08 UTC (rev 5769)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-02-01
19:44:10 UTC (rev 5770)
@@ -174,7 +174,7 @@
fieldFocusHandler : function() {
this.doActive();
- if (this.field.value == this.defaultMessage) {
+ if ((this.field.value == this.defaultMessage) && (this.comboValue.value ==
"")) {
this.field.value = "";
} else {
if (this.isSelection) {
@@ -302,7 +302,6 @@
isActive : function() {
return (this.field.className == this.classes.FIELD.CLASSES.ACTIVE);
-
},
doActive : function() {
Show replies by date