source: trunk/grails-app/views/wizard/pages/_unassigned_samplingEvent_warning.gsp @ 959

Last change on this file since 959 was 959, checked in by j.a.m.wesbeek@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Date Rev
File size: 1.3 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: 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        <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">Warning!</span>
47                In the previous page one (or more) sampling events were not assigned to a group which means no samples
48                will be generated for these sampling events. If this is in error, please go back to the previous
49                page and make sure to properly group the sampling events. If, however, this is how you intended it, press
50                next to continue, or wait <span id="seconds"></span> seconds...
51        </span>
52
53</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.