Author: nbelaevski
Date: 2009-03-24 21:42:58 -0400 (Tue, 24 Mar 2009)
New Revision: 13168
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
https://jira.jboss.org/jira/browse/RF-6544
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2009-03-25
00:42:45 UTC (rev 13167)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2009-03-25
01:42:58 UTC (rev 13168)
@@ -212,14 +212,14 @@
if(proceed) {
this.endEditableState();
- if(item.itemValue && item.itemValue.blank()) {
+ if (!item.itemValue || item.itemValue.blank()) {
item.itemValue = "";
}
- if(item.itemLabel && item.itemLabel.blank()) {
+ if (!item.itemLabel || item.itemLabel.blank()) {
item.itemLabel = this.attributes.defaultLabel;
}
-
+
this.valueKeeper.value = item.itemValue;
this.currentText = item.itemLabel;
this.tempValueKeeper.value = item.itemLabel;