source: trunk/grails-app/views/wizard/pages/_wait.gsp @ 635

Last change on this file since 635 was 635, checked in by duh, 12 years ago
  • development version of samples page

-- improved handeling of samples
-- added warning page after clicking 'previous' in samples page

  • fixed exceptions in deleting events
  • added debug button to events page to reset revents
  • changed events page to check for at least 1 sampling event instead of just 1 event (you need sampling events in order to have samples and groups later on)
File size: 1.1 KB
Line 
1<%
2/**
3 * Finish page
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100212
7 * @package wizard
8 * @see     dbnp.studycapturing.WizardTagLib::previousNext
9 * @see     dbnp.studycapturing.WizardController
10 *
11 * Revision information:
12 * $Rev: 359 $
13 * $Author: duh $
14 * $Date: 2010-04-20 14:42:20 +0200 (Tue, 20 Apr 2010) $
15 */
16%>
17<wizard:pageContent>
18
19        <script type="text/javascript">
20                $(document).ready(function() {
21                        handleDots();
22                        goToSave();
23                });
24
25                function handleDots() {
26                        var dots = $('#dots');
27
28                        if (dots[0]) {
29                                var html = dots.html();
30                                dots.html( ((html.length) < 5) ? html+"." : "")
31                                setTimeout("handleDots();", 1000);
32                        }
33                }
34
35                function goToSave() {
36                        <wizard:ajaxSubmitJs name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" />
37                }
38        </script>
39
40        <span class="info">
41                <span class="spinner">Saving study</span>
42                <img src="${resource(dir: 'images', file: 'spinner.gif')}">
43                Please wait your study is being saved <span id="dots"></span>
44        </span>
45
46</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.