[richfaces-svn-commits] JBoss Rich Faces SVN: r13454 - trunk/test-applications/realworld2/web/src/main/webapp/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Apr 9 07:11:11 EDT 2009


Author: abelevich
Date: 2009-04-09 07:11:11 -0400 (Thu, 09 Apr 2009)
New Revision: 13454

Modified:
   trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js
Log:
add effect applying function

Modified: trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js	2009-04-09 10:16:19 UTC (rev 13453)
+++ trunk/test-applications/realworld2/web/src/main/webapp/scripts/realworld.js	2009-04-09 11:11:11 UTC (rev 13454)
@@ -5,4 +5,21 @@
 			target.value = value.length != 0 ? value + ", " + tag : tag; 
 		}
 	}
+}
+
+function applyModalPanelEffect(panelId, effectFunc, params) {
+	if (panelId && effectFunc) {
+		
+		var modalPanel = $(panelId);
+		
+		if (modalPanel && modalPanel.component) {
+			var component = modalPanel.component;
+			var div = component.getSizedElement(); 
+			
+			Element.hide(div);
+						
+			effectFunc.call(this, Object.extend({targetId: div.id}, params || {}));
+		}
+				
+	}
 }
\ No newline at end of file




More information about the richfaces-svn-commits mailing list