Last change
on this file since 1303 was
1286,
checked in by work@…, 10 years ago
|
- BIG refactoring / rewrite of the wizard to use the ajaxflow plugin, part one of ticket #183
|
File size:
1.1 KB
|
Line | |
---|
1 | <% |
---|
2 | /** |
---|
3 | * Warning page for browsing back from samples page |
---|
4 | * |
---|
5 | * @author Jeroen Wesbeek |
---|
6 | * @since 20101020 |
---|
7 | * @package wizard |
---|
8 | * @see dbnp.studycapturing.WizardTagLib::previousNext |
---|
9 | * @see dbnp.studycapturing.WizardController |
---|
10 | * |
---|
11 | * Revision information: |
---|
12 | * $Rev: 1285 $ |
---|
13 | * $Author: work@osx.eu $ |
---|
14 | * $Date: 2010-12-20 16:28:23 +0100 (Mon, 20 Dec 2010) $ |
---|
15 | */ |
---|
16 | %> |
---|
17 | <af:page> |
---|
18 | <script type="text/javascript"> |
---|
19 | var seconds = 15; |
---|
20 | $(document).ready(function() { |
---|
21 | redirect(); |
---|
22 | }); |
---|
23 | |
---|
24 | function redirect() { |
---|
25 | var s = $('#seconds'); |
---|
26 | if (s[0]) { |
---|
27 | s.html( seconds ); |
---|
28 | |
---|
29 | if ( seconds < 1) { |
---|
30 | goToNext(); |
---|
31 | } else { |
---|
32 | seconds--; |
---|
33 | setTimeout("redirect();", 1000); |
---|
34 | } |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | function goToNext() { |
---|
39 | <af:ajaxSubmitJs name="next" afterSuccess="onPage()" /> |
---|
40 | } |
---|
41 | </script> |
---|
42 | |
---|
43 | <span class="info"> |
---|
44 | <span class="warning"><g:message code="generic.warning" />!</span> |
---|
45 | <g:if test="${study.samplingEvents}"> |
---|
46 | <g:message code="studywizard.no.samplingevents.grouped" /> |
---|
47 | </g:if> |
---|
48 | <g:else> |
---|
49 | <g:message code="studywizard.no.samplingevents" /> |
---|
50 | </g:else> |
---|
51 | </span> |
---|
52 | |
---|
53 | </af:page> |
---|
Note: See
TracBrowser
for help on using the repository browser.