[richfaces-svn-commits] JBoss Rich Faces SVN: r4814 - branches/3.1.x/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts.

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


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

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

Modified: branches/3.1.x/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
--- branches/3.1.x/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js	2007-12-13 14:00:19 UTC (rev 4813)
+++ branches/3.1.x/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js	2007-12-13 14:00:24 UTC (rev 4814)
@@ -67,19 +67,19 @@
 	showTimeoutLength: 0,
 	queuedId : '',
 
-	LMPopUp:function(menuName, isCurrent) {
+	LMPopUp:function(menuName, isCurrent, event) {
 		if (!this.loaded || ( this.isVisible(menuName) && !isCurrent)) {
 			return;
 		}
 		if (menuName == this.father[this.layerPoppedUp]) {
-			this.LMPopUpL(this.layerPoppedUp, false);
+			this.LMPopUpL(this.layerPoppedUp, false, event);
 		} else if (this.father[menuName] == this.layerPoppedUp) {
-			this.LMPopUpL(menuName, true);
+			this.LMPopUpL(menuName, true, event);
 		} else {
 			//this.shutdown();
 			foobar = menuName;
 			do {
-				this.LMPopUpL(foobar, true);
+				this.LMPopUpL(foobar, true, event);
 				foobar = this.father[foobar];
 			} while (foobar);
 		}
@@ -94,7 +94,7 @@
 	 *	@param menuName
 	 *	@param visibleFlag
 	 */
-	LMPopUpL: function(menuName, visibleFlag) {
+	LMPopUpL: function(menuName, visibleFlag, event) {
 		if (!this.loaded) {
 			return;
 		}
@@ -109,10 +109,10 @@
 		if (visible && !visibleFlag) {
 			if (menuLayer) {
 				if (menuLayer.eventOnClose) {
-					menuLayer.eventOnClose();
+					menuLayer.eventOnClose(event);
 				}
 				if (menuLayer.eventOnCollapse) {
-					menuLayer.eventOnCollapse();
+					menuLayer.eventOnCollapse(event);
 				}
 				if (menuLayer.refItem) {
 					menuLayer.refItem.highLightGroup(false);
@@ -121,10 +121,10 @@
 		} else if (!visible && visibleFlag) {
 			if (menuLayer) {
 				if (menuLayer.eventOnOpen) {
-					menuLayer.eventOnOpen();
+					menuLayer.eventOnOpen(event);
 				}
 				if (menuLayer.eventOnExpand) {
-					menuLayer.eventOnExpand();
+					menuLayer.eventOnExpand(event);
 				}
 	
 				if (menuLayer.level>0) {
@@ -398,7 +398,7 @@
         this.layer.style.left = layerLeft + "px";
         this.layer.style.top = layerTop + "px";
 
-        RichFaces.Menu.Layers.LMPopUp(this.layer.id, false);
+        RichFaces.Menu.Layers.LMPopUp(this.layer.id, false, this.event);
         RichFaces.Menu.Layers.clearLMTO();
     }.bind(this);
 }
@@ -551,7 +551,7 @@
 
 	    this.layer.style.width = this.layer.clientWidth + "px";
 
-		RichFaces.Menu.Layers.LMPopUp(this.layer.id, false);
+		RichFaces.Menu.Layers.LMPopUp(this.layer.id, false, this.event);
 		RichFaces.Menu.Layers.clearLMTO();
 	}.bind(this);
 }
@@ -572,7 +572,7 @@
         if (!RichFaces.Menu.Layers.isVisible(this.layer) &&
         	RichFaces.Menu.Layers.isVisible(RichFaces.Menu.Layers.father[this.layer.id])) {
 	        this.reposition();
-    	    RichFaces.Menu.Layers.LMPopUp(this.layer, false);
+    	    RichFaces.Menu.Layers.LMPopUp(this.layer, false, this.event);
         }
     }.bind(this);
 }




More information about the richfaces-svn-commits mailing list