[richfaces-svn-commits] JBoss Rich Faces SVN: r4813 - in branches/3.1.x/ui/contextMenu/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Dec 13 09:00:19 EST 2007


Author: maksimkaszynski
Date: 2007-12-13 09:00:19 -0500 (Thu, 13 Dec 2007)
New Revision: 4813

Modified:
   branches/3.1.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java
   branches/3.1.x/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js
Log:
http://jira.jboss.com/jira/browse/RF-1620

Modified: branches/3.1.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java
===================================================================
--- branches/3.1.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java	2007-12-13 13:50:47 UTC (rev 4812)
+++ branches/3.1.x/ui/contextMenu/src/main/java/org/richfaces/renderkit/html/ContextMenuRendererDelegate.java	2007-12-13 14:00:19 UTC (rev 4813)
@@ -74,14 +74,14 @@
 		} else {
 			  buffer.append(".");
 			  function = new JSFunction("asContextMenu");
-			  function.addParameter(component.getParent().getClientId(context));
+/*			  function.addParameter(component.getParent().getClientId(context));
   			  String evt = (String) component.getAttributes().get("event");
 			  if(evt == null || evt.trim().length() == 0){
 					evt = "oncontextmenu";
 			  }
 			  function.addParameter(evt);
 			  function.addParameter("onmouseout");
-			  ScriptOptions menuOptions = new ScriptOptions(component);
+*/			  ScriptOptions menuOptions = new ScriptOptions(component);
 
 			  menuOptions.addOption("direction");
 			  menuOptions.addOption("jointPoint");

Modified: branches/3.1.x/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js
===================================================================
--- branches/3.1.x/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js	2007-12-13 13:50:47 UTC (rev 4812)
+++ branches/3.1.x/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js	2007-12-13 14:00:19 UTC (rev 4813)
@@ -51,6 +51,7 @@
 	
 	show: function(event, context) {
 		this.construct(context);
+		event.parameters = context;
 		new RichFaces.Menu.DelayedContextMenu(this.id + "_menu", event).show();
 		//Event.stop(event||window.event);
 	},




More information about the richfaces-svn-commits mailing list