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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Dec 17 12:23:21 EST 2008


Author: vmolotkov
Date: 2008-12-17 12:23:21 -0500 (Wed, 17 Dec 2008)
New Revision: 11854

Modified:
   trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
https://jira.jboss.org/jira/browse/RF-4422

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-12-17 16:49:23 UTC (rev 11853)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js	2008-12-17 17:23:21 UTC (rev 11854)
@@ -22,6 +22,7 @@
 	initHandlers : function($super) {
 		$super();
 		this.tempValueKeeper.observe("click", function(e){this.tempKeeperClickHandler(e);}.bindAsEventListener(this));
+		//this.button.observe("click", function(e){this.tempKeeperClickHandler(e);}.bindAsEventListener(this));
 		
 		this.button.observe("mousedown", function(e){this.buttonClickHandler(e);}.bindAsEventListener(this));
 		
@@ -39,15 +40,6 @@
 		return width;
 	},
 	
-	//switchingStatesHandler : function($super, e) {
-		//var el = (e.srcElement) ? e.srcElement : e.target;
-		//if (el.id == this.inplaceInput.id) {
-			//$super(e);
-		//} //else if(this.tempValueKeeper.style.display != "none") {
-			//this.tempValueKeeper.focus();
-		//}
-	//},
-	
 	startEditableState : function($super) {
 		$super();
 		this.button.show();
@@ -70,7 +62,6 @@
 	buttonClickHandler : function(e) {
 		this.button.isClicked = true;
 		this.tempKeeperClickHandler();
-		//this.tempValueKeeper.focus();
 		Event.stop(e);
 	},
 	
@@ -176,9 +167,10 @@
 				}
 				break;
 			case Event.KEY_TAB :
-				if (this.attributes.showControls) {
+				//https://jira.jboss.org/jira/browse/RF-4422
+				/*if (this.attributes.showControls) {
 					this.save(event);
-				}
+				}*/
 				break;
 		}
 	},




More information about the richfaces-svn-commits mailing list