[richfaces-svn-commits] JBoss Rich Faces SVN: r1324 - in trunk/richfaces/tree/src/main: templates and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jun 26 11:20:24 EDT 2007


Author: sergeyhalipov
Date: 2007-06-26 11:20:23 -0400 (Tue, 26 Jun 2007)
New Revision: 1324

Modified:
   trunk/richfaces/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
   trunk/richfaces/tree/src/main/templates/htmlTreeNode.jspx
Log:
Compact JS events code for toggle actions.

Modified: trunk/richfaces/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
===================================================================
--- trunk/richfaces/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java	2007-06-26 14:06:46 UTC (rev 1323)
+++ trunk/richfaces/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java	2007-06-26 15:20:23 UTC (rev 1324)
@@ -115,7 +115,7 @@
 			result.append("', ");
 			result.append("form.id, ");
 			result.append("'', ");
-			result.append("params);}; return false;");
+			result.append("params);};");
 
 			return result.toString();
 		}

Modified: trunk/richfaces/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- trunk/richfaces/tree/src/main/templates/htmlTreeNode.jspx	2007-06-26 14:06:46 UTC (rev 1323)
+++ trunk/richfaces/tree/src/main/templates/htmlTreeNode.jspx	2007-06-26 15:20:23 UTC (rev 1324)
@@ -64,7 +64,7 @@
 					]]>
 				</jsp:scriptlet>
 							<a href="#" id="#{clientId}:handle"
-							   onclick="#{this:getToggleScript(context, component, 'handle')}">
+							   onclick="#{this:getToggleScript(context, component, 'handle')} return false;">
 
 				<jsp:scriptlet>
 						<![CDATA[




More information about the richfaces-svn-commits mailing list