Ignore:
Timestamp:
Dec 10, 2010, 3:12:28 PM (10 years ago)
Author:
work@…
Message:
  • resolves #198, user friendly error messages in wizard
File:
1 edited

Legend:

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

    r1149 r1260  
    2727                // mark error fields
    2828                <g:each in="${wizardErrors}" var="error">
    29                 var element = $("input:[name='${error.key}'], input:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}'], select:[name='${error.key}'], select:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}']");
     29                var element = $("input:[name='${error.key}'], input:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}'], select:[name='${error.key}'], select:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}'], textarea:[name='${error.key}'], textarea:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}']");
    3030                 <g:if test="${error.value['dynamic']}">
    3131                element.addClass('error');
Note: See TracChangeset for help on using the changeset viewer.