Last change
on this file since 1430 was
1430,
checked in by work@…, 10 years ago
|
|
-
Property svn:keywords set to
Rev Author Date
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1286] | 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: |
---|
[1430] | 12 | * $Rev: 1430 $ |
---|
| 13 | * $Author: work@osx.eu $ |
---|
| 14 | * $Date: 2011-01-21 20:05:36 +0000 (vr, 21 jan 2011) $ |
---|
[1286] | 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.