Last change
on this file since 1285 was
1285,
checked in by work@…, 10 years ago
|
- resolved #242, incorrect error messages. Also moved the messages themselves to the i18n files..
|
-
Property svn:keywords set to
Author Date Rev
|
File size:
1.2 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 15:28:23 +0000 (ma, 20 dec 2010) $ |
---|
15 | */ |
---|
16 | %> |
---|
17 | <wizard:pageContent> |
---|
18 | <script type="text/javascript"> |
---|
19 | var seconds = 15; |
---|
20 | $(document).ready(function() { |
---|
21 | redirect(); |
---|
22 | //handleDots(); |
---|
23 | //goToSave(); |
---|
24 | }); |
---|
25 | |
---|
26 | function redirect() { |
---|
27 | var s = $('#seconds'); |
---|
28 | if (s[0]) { |
---|
29 | s.html( seconds ); |
---|
30 | |
---|
31 | if ( seconds < 1) { |
---|
32 | goToNext(); |
---|
33 | } else { |
---|
34 | seconds--; |
---|
35 | setTimeout("redirect();", 1000); |
---|
36 | } |
---|
37 | } |
---|
38 | } |
---|
39 | |
---|
40 | function goToNext() { |
---|
41 | <wizard:ajaxSubmitJs name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" /> |
---|
42 | } |
---|
43 | </script> |
---|
44 | |
---|
45 | <span class="info"> |
---|
46 | <span class="warning"><g:message code="generic.warning" />!</span> |
---|
47 | <g:if test="${study.samplingEvents}"> |
---|
48 | <g:message code="studywizard.no.samplingevents.grouped" /> |
---|
49 | </g:if> |
---|
50 | <g:else> |
---|
51 | <g:message code="studywizard.no.samplingevents" /> |
---|
52 | </g:else> |
---|
53 | </span> |
---|
54 | |
---|
55 | </wizard:pageContent> |
---|
Note: See
TracBrowser
for help on using the repository browser.