Author: vmolotkov
Date: 2008-03-28 14:49:32 -0400 (Fri, 28 Mar 2008)
New Revision: 7382
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
list functionality is corrected
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 2008-03-28
18:42:12 UTC (rev 7381)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-28
18:49:32 UTC (rev 7382)
@@ -74,22 +74,23 @@
},
tmpValueBlurHandler : function($super, event) {
- if ($super(event)) {
-
-
+ $super(event);
+ if (!this.byTab) {
+ if (!this.comboList.isList || this.clickOnBar) {
+ this.comboList.hideWithDelay();
+ }
-
- if (!this.attributes.showControls) {
- this.save();
+ if (!this.attributes.showControls) {
+ this.save();
+ } else {
+ this.applyTmpValue();
+ }
+ this.comboList.isList = false;
+ } else if(event.target != this.tabber) {
+ this.comboList.hideWithDelay();
} else {
- this.applyTmpValue();
+ this.byTab = false;
}
- if (!this.comboList.isList || this.clickOnBar) {
- this.comboList.hideWithDelay();
- }
-
- this.comboList.isList = false;
- }
},
listClickHandler : function(event) {