source: trunk/grails-app/views/studywizard/common/_on_page.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: 805 bytes
Line 
1<%
2/**
3 * wizard refresh flow action
4 *
5 * When a page (/ partial) is rendered, any DOM event handlers need to be
6 * (re-)attached. The af:ajaxButton, af:ajaxSubmitJs and af:redirect tags
7 * supports calling a JavaScript after the page has been rendered by passing
8 * the 'afterSuccess' argument.
9 *
10 * Example:     af:redirect afterSuccess="onPage();"
11 *              af:redirect afterSuccess="console.log('redirecting...');"
12 *
13 * Generally one would expect this code to add jQuery event handlers to
14 * DOM objects in the rendered page (/ partial).
15 *
16 * @author Jeroen Wesbeek
17 * @since  20101220
18 *
19 * Revision information:
20 * $Rev:  66849 $
21 * $Author:  duh $
22 * $Date:  2010-12-08 15:12:54 +0100 (Wed, 08 Dec 2010) $
23 */
24%>
25<script type="text/javascript">
26        function onPage() {
27                onStudyWizardPage();
28        }
29</script>
30
Note: See TracBrowser for help on using the repository browser.