Ignore:
Timestamp:
Mar 17, 2010, 3:18:54 PM (10 years ago)
Author:
duh
Message:
  • improved try catch block in wizard data saving
  • if saving fails, the generated exception is shown in the client's error feedback dialog and a stacktrace is shown in the console
  • navigating away from last wizard page does not result in a warning anymore
  • last page does not contain a 'previous' button anymore as this makes no sense at all
Location:
trunk/grails-app/views/wizard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/common/_error.gsp

    r250 r279  
    3636
    3737                // show error dialog
    38                 $(function() {
    39                         $("div#wizardError").dialog({
    40                                 modal: true,
    41                                 width: 600,
    42                                 buttons: {
    43                                         Ok: function() {
    44                                                 $(this).dialog('close');
    45                                         }
     38                $("div#wizardError").dialog({
     39                        modal: true,
     40                        width: 600,
     41                        buttons: {
     42                                Ok: function() {
     43                                        $(this).dialog('close');
    4644                                }
    47                         });
     45                        }
    4846                });
    4947        </script>
  • trunk/grails-app/views/wizard/common/_navigation.gsp

    r247 r279  
    1515%>
    1616    <div class="navigation">
    17       <g:if test="${page>1}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
     17      <g:if test="${page>1 && page<pages.size}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
    1818      <g:if test="${page>1 && page<pages.size}"> | </g:if>
    1919      <g:if test="${page<pages.size}"><wizard:ajaxButton name="next" value="next &raquo;" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
  • trunk/grails-app/views/wizard/pages/_done.gsp

    r275 r279  
    2222        </span>
    2323
     24        <script type="text/javascript">
     25                // disable redirect warning
     26                var warnOnRedirect = false;
     27        </script>
     28
    2429</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.