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