source: trunk/grails-app/views/studywizard/pages/_wait.gsp @ 1286

Last change on this file since 1286 was 1286, checked in by work@…, 10 years ago
  • BIG refactoring / rewrite of the wizard to use the ajaxflow plugin, part one of ticket #183
File size: 1002 bytes
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: 959 $
13 * $Author: j.a.m.wesbeek@umail.leidenuniv.nl $
14 * $Date: 2010-10-20 21:13:14 +0200 (Wed, 20 Oct 2010) $
15 */
16%>
17<af:page>
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" afterSuccess="onPage()" 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</af:page>
Note: See TracBrowser for help on using the repository browser.