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

Last change on this file since 512 was 512, checked in by duh, 11 years ago
  • added 'wait' page before saving...
File size: 1.0 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                        var html = dots.html();
28                        dots.html( ((html.length) < 5) ? html+"." : "")
29                        setTimeout("handleDots();", 1000);
30                }
31
32                function goToSave() {
33                        <wizard:ajaxSubmitJs name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" />
34                }
35        </script>
36
37        <span class="info">
38                <span class="spinner">Saving study</span>
39                <img src="${resource(dir: 'images', file: 'spinner.gif')}">
40                Please wait your study is being saved <span id="dots"></span>
41        </span>
42
43</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.