Ignore:
Timestamp:
Apr 19, 2010, 2:07:48 AM (14 years ago)
Author:
gav
Message:

Improved table row onclick implementation for all detailed list and search views.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/person/list.gsp

    r467 r498  
    8282                <tbody>
    8383                <g:each in="${personList}" status="i" var="person">
    84                     <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'/>
     84                    <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    8585
    86                         <td>${person.id}</td>
    87                         <td>${person.loginName?.encodeAsHTML()}</td>
    88                         <td>${person.firstName?.encodeAsHTML()}</td>
    89                         <td>${person.lastName?.encodeAsHTML()}</td>
    90                         <td>${person.isActive?.encodeAsHTML()}</td>
    91                         <td>
     86                        <td onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'>
     87                            ${person.id}
     88                        </td>
     89
     90                        <td onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'>
     91                            ${person.loginName?.encodeAsHTML()}
     92                        </td>
     93
     94                        <td onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'>
     95                            ${person.firstName?.encodeAsHTML()}
     96                        </td>
     97
     98                        <td onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'>
     99                            ${person.lastName?.encodeAsHTML()}
     100                        </td>
     101
     102                        <td onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'>
     103                            ${person.isActive?.encodeAsHTML()}
     104                        </td>
     105
     106                        <td class="notClickable">
    92107                            <g:link action="show" id="${person.id}">
    93108                                <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.