[richfaces-svn-commits] JBoss Rich Faces SVN: r13737 - in trunk: ui/datascroller/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
Tue Apr 21 11:13:30 EDT 2009


Author: nbelaevski
Date: 2009-04-21 11:13:30 -0400 (Tue, 21 Apr 2009)
New Revision: 13737

Modified:
   trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp
   trunk/ui/datascroller/src/main/resources/org/richfaces/renderkit/html/scripts/datascroller.js
Log:
https://jira.jboss.org/jira/browse/RF-6887

Modified: trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp	2009-04-21 15:07:12 UTC (rev 13736)
+++ trunk/samples/datascroller-sample/src/main/webapp/pages/index.jsp	2009-04-21 15:13:30 UTC (rev 13737)
@@ -112,7 +112,9 @@
         	<h:panelGrid columns="1">
         		<h:outputLink onclick="$('form:jsAPIDs').component.first(); return false;">first</h:outputLink>
         		<h:outputLink onclick="$('form:jsAPIDs').component.previous(); return false;">previous</h:outputLink>
+        		<h:outputLink onclick="$('form:jsAPIDs').component.fastRewind(); return false;">fastRewind</h:outputLink>
         		<h:outputLink onclick="$('form:jsAPIDs').component.switchToPage(2); return false;">switchToPage(2)</h:outputLink>
+        		<h:outputLink onclick="$('form:jsAPIDs').component.fastForward(); return false;">fastForward</h:outputLink>
         		<h:outputLink onclick="$('form:jsAPIDs').component.next(); return false;">next</h:outputLink>
         		<h:outputLink onclick="$('form:jsAPIDs').component.last(); return false;">last</h:outputLink>
         	</h:panelGrid>

Modified: trunk/ui/datascroller/src/main/resources/org/richfaces/renderkit/html/scripts/datascroller.js
===================================================================
--- trunk/ui/datascroller/src/main/resources/org/richfaces/renderkit/html/scripts/datascroller.js	2009-04-21 15:07:12 UTC (rev 13736)
+++ trunk/ui/datascroller/src/main/resources/org/richfaces/renderkit/html/scripts/datascroller.js	2009-04-21 15:13:30 UTC (rev 13737)
@@ -39,5 +39,13 @@
 	
 	last: function() {
 		this.switchToPage("last");
+	},
+	
+	fastForward: function() {
+		this.switchToPage("fastforward");
+	},
+	
+	fastRewind: function() {
+		this.switchToPage("fastrewind");
 	}
 });
\ No newline at end of file




More information about the richfaces-svn-commits mailing list