Author: abelevich
Date: 2009-01-05 09:12:27 -0500 (Mon, 05 Jan 2009)
New Revision: 12097
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
fix showValueInView support
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-01-05
14:11:33 UTC (rev 12096)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2009-01-05
14:12:27 UTC (rev 12097)
@@ -201,7 +201,11 @@
setValue : function(e, param) {
var item = {};
item.itemValue = this.getParameters(e,param,"value");
- item.itemLabel = this.findLabel(this.comboList.itemsText,item.itemValue);
+ if(this.showValueInView) {
+ item.itemLabel = item.itemValue;
+ } else {
+ item.itemLabel = this.findLabel(this.comboList.itemsText,item.itemValue);
+ }
if (!item.itemLabel) {
item.itemValue = this.currentItemValue;
Show replies by date