Last change
on this file since 959 was
959,
checked in by j.a.m.wesbeek@…, 12 years ago
|
|
-
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 20100701 |
---|
7 | * @package wizard |
---|
8 | * @see dbnp.studycapturing.WizardTagLib::previousNext |
---|
9 | * @see dbnp.studycapturing.WizardController |
---|
10 | * |
---|
11 | * Revision information: |
---|
12 | * $Rev: 959 $ |
---|
13 | * $Author: j.a.m.wesbeek@umail.leidenuniv.nl $ |
---|
14 | * $Date: 2010-10-20 19:13:14 +0000 (wo, 20 okt 2010) $ |
---|
15 | */ |
---|
16 | %> |
---|
17 | <wizard:pageContent> |
---|
18 | |
---|
19 | <script type="text/javascript"> |
---|
20 | var seconds = 8; |
---|
21 | $(document).ready(function() { |
---|
22 | redirect(); |
---|
23 | //handleDots(); |
---|
24 | //goToSave(); |
---|
25 | }); |
---|
26 | |
---|
27 | function redirect() { |
---|
28 | var s = $('#seconds'); |
---|
29 | if (s[0]) { |
---|
30 | s.html( seconds ); |
---|
31 | |
---|
32 | if ( seconds < 1) { |
---|
33 | goToPrevious(); |
---|
34 | } else { |
---|
35 | seconds--; |
---|
36 | setTimeout("redirect();", 1000); |
---|
37 | } |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
41 | function goToPrevious() { |
---|
42 | <wizard:ajaxSubmitJs name="previous" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" /> |
---|
43 | } |
---|
44 | </script> |
---|
45 | |
---|
46 | <span class="info"> |
---|
47 | <span class="warning">Warning!</span> |
---|
48 | Renaming, adding and removing subjects, sample events and / or grouping <i>may</i> result in loss of samples!<br /> |
---|
49 | Continuing to the groups page in <span id="seconds"></span> seconds... |
---|
50 | </span> |
---|
51 | |
---|
52 | </wizard:pageContent> |
---|
Note: See
TracBrowser
for help on using the repository browser.