Author: vmolotkov
Date: 2008-08-28 13:18:58 -0400 (Thu, 28 Aug 2008)
New Revision: 10227
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
https://jira.jboss.org/jira/browse/RF-4314
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-28
15:37:13 UTC (rev 10226)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-28
17:18:58 UTC (rev 10227)
@@ -102,16 +102,18 @@
//TODO: Event.element here?
switchingStatesHandler : function(e) {
- if (this.skipSwitching) {
- this.skipSwitching = false;
- return;
- }
- var el = (e.srcElement) ? e.srcElement : e.target;
- this.edit();
- if (el.id == this.inplaceInput.id) {
- this.skipSwitching = true;
- this.tempValueKeeper.focus();
- }
+ if (this.skipSwitching) {
+ this.skipSwitching = false;
+ return;
+ }
+ var el = (e.srcElement) ? e.srcElement : e.target;
+ if (this.currentState != Richfaces.InplaceInput.STATES[1]) {
+ this.edit();
+ }
+ if (el.id == this.inplaceInput.id) {
+ this.skipSwitching = true;
+ this.tempValueKeeper.focus();
+ }
},
edit: function (){