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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Sat Jan 12 10:32:59 EST 2008


Author: sergeyhalipov
Date: 2008-01-12 10:32:58 -0500 (Sat, 12 Jan 2008)
New Revision: 5331

Modified:
   trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
http://jira.jboss.com/jira/browse/RF-1895

Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js	2008-01-12 14:39:36 UTC (rev 5330)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js	2008-01-12 15:32:58 UTC (rev 5331)
@@ -191,8 +191,7 @@
 	ffcheck: function(relTarg)
 	{
 		// FF fix [Exception... "'Permission denied to get property HTMLDivElement.parentNode' when calling method...]
-		if (this.parent.tagName.toLowerCase()=="input" && relTarg)
-		{
+		if (this.parent.tagName.toLowerCase()=="input" && relTarg) {
 			var className;
 			try {
 				className = relTarg.className;
@@ -202,6 +201,13 @@
 				return true;
 			}
 			if (relTarg==this.parent) return true;
+		} else {
+			while (relTarg) {
+				if(relTarg == this.parent){
+					return true;
+				}
+				relTarg = relTarg.parentNode;
+			}
 		}
 		return false;
 		//end fix
@@ -563,4 +569,4 @@
 		}
 		
 	}
-} 
\ No newline at end of file
+} 




More information about the richfaces-svn-commits mailing list