[richfaces-svn-commits] JBoss Rich Faces SVN: r6036 - trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Feb 12 12:12:22 EST 2008


Author: vmolotkov
Date: 2008-02-12 12:12:22 -0500 (Tue, 12 Feb 2008)
New Revision: 6036

Modified:
   trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
state changing is corrected

Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js	2008-02-12 16:57:17 UTC (rev 6035)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js	2008-02-12 17:12:22 UTC (rev 6036)
@@ -14,6 +14,7 @@
 		this.classes = classes;
 		
 		this.currentText = this.getCurrentText();
+		this.value = this.valueKeeper.value;
 		
 		this.currentState = Richfaces.InplaceInput.STATES[0];
 		this.prevState = Richfaces.InplaceInput.STATES[0];
@@ -214,11 +215,13 @@
 			this.setDefaultText();
 			this.valueKeeper.value = "";
 			this.startViewState();
-		} else if (userValue != value) {
+		} else if (userValue != this.value) {
 			this.currentText = userValue;
 			this.valueKeeper.value = userValue;
 			this.startChangedState();
 		} else {
+			this.currentText = userValue;
+			this.valueKeeper.value = userValue;
 			this.startViewState();
 		} 
 		if (this.events.onviewactivated) {




More information about the richfaces-svn-commits mailing list