Ignore:
Timestamp:
Mar 9, 2010, 2:16:07 PM (10 years ago)
Author:
duh
Message:
  • date and datetimefields are now handled independent of naming but by field type (a rel='date' and rel='datetime' argument is added to the rendered input element)
  • client side error reporting did not work properly for select elements
  • dynamically inserted javascript confirmation warning in the DOM-anchors outside of the wizard (navigating away from the wizard without saving causes loss of data and work)
File:
1 edited

Legend:

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

    r247 r250  
    2121                                <g:if test="${!e}"><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 50px 0;"></span></g:if>
    2222                                ${error.value['key']} &rarr; ${error.value['value']}
     23${error.value['dynamic']}
    2324                        </p>
    2425                </g:each>
     
    2829                <g:each in="${errors}" var="error">
    2930                <g:if test="${error.value['dynamic']}">
    30                 $("input:[name='${error.key}']").addClass('error');
     31                $("input:[name='${error.key}'], select:[name='${error.key}']").addClass('error');
    3132                </g:if><g:else>
    32                 $("input:[name='${error.key}']").parent().parent().addClass('error');
     33                $("input:[name='${error.key}'], select:[name='${error.key}']").parent().parent().addClass('error');
    3334                </g:else>
    3435                </g:each>
     
    3738                $(function() {
    3839                        $("div#wizardError").dialog({
    39                                 bgiframe: true,
    4040                                modal: true,
    4141                                width: 600,
Note: See TracChangeset for help on using the changeset viewer.