Changeset 101 for trunk/web-app


Ignore:
Timestamp:
Jan 20, 2010, 5:01:26 PM (13 years ago)
Author:
duh
Message:
  • refactored the wizard initial page to dynamically load pageOne, instead of rendering pageOne within the template itself. This was done because otherwise both the mainPage and pageOne had to contain duplicate logic. The ajaxified webflow works better this way.
  • added an <wizard:ajaxFlowRedirect...> tag which renders javascript code executing a jQuery ajax call (it actually wraps around <wizard:button...> tag but lifts the ajax call out of the button and wraps javascript tags around it)
  • improved the help / tooltip workings
  • extended the <wizard:button...> with an afterSuccess argument which executes some javascript after success. This is different from the default submitToRemote 'after' behaviour which is always executed in parallel with the ajax success call (hence, you javascript cannot access ajax result data while the afterSuccess method can)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/wizard.js

    r98 r101  
    1414 */
    1515$(document).ready(function() {
     16    attachHelpTooltips();
     17});
     18
     19function attachHelpTooltips() {
    1620    // attach help action on all wizard help icons
    1721    $('div#wizard').find('div.help').each(function() {
     
    1923            content: 'leftMiddle',
    2024            position: {
    21                corner: {
    22                   tooltip: 'leftMiddle',
    23                   target: 'rightMiddle'
    24                }
     25                corner: {
     26                    tooltip: 'leftMiddle',
     27                    target: 'rightMiddle'
     28                }
    2529            },
    2630            style: {
    27                border: {
    28                   width: 5,
    29                   radius: 10
    30                },
    31                padding: 10,
    32                textAlign: 'center',
    33                tip: true, // Give it a speech bubble tip with automatic corner detection
    34                name: 'blue' // Style it according to the preset 'cream' style
     31                border: {
     32                    width: 5,
     33                    radius: 10
     34                },
     35                padding: 10,
     36                textAlign: 'center',
     37                tip: true, // Give it a speech bubble tip with automatic corner detection
     38                name: 'blue' // Style it according to the preset 'cream' style
    3539            },
    3640            content: $(this).find('div.content').html(),
     
    3943        })
    4044    })
    41 });
     45}
Note: See TracChangeset for help on using the changeset viewer.