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/addressDetailed/list.gsp

    r397 r498  
    3636                    <tbody>
    3737                    <g:each in="${addressInstanceList}" status="i" var="addressInstance">
    38                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'/>
     38                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    3939                       
    40                             <td>${fieldValue(bean:addressInstance, field:'id')}</td>
     40                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
     41                                ${fieldValue(bean:addressInstance, field:'id')}
     42                            </td>
    4143                       
    42                             <td>${fieldValue(bean:addressInstance, field:'street1')}</td>
     44                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
     45                                ${fieldValue(bean:addressInstance, field:'street1')}
     46                            </td>
    4347                       
    44                             <td>${fieldValue(bean:addressInstance, field:'street2')}</td>
     48                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
     49                                ${fieldValue(bean:addressInstance, field:'street2')}
     50                            </td>
    4551                       
    46                             <td>${fieldValue(bean:addressInstance, field:'city')}</td>
     52                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
     53                                ${fieldValue(bean:addressInstance, field:'city')}
     54                            </td>
    4755                       
    48                             <td>${fieldValue(bean:addressInstance, field:'state')}</td>
     56                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
     57                                ${fieldValue(bean:addressInstance, field:'state')}
     58                            </td>
    4959                       
    50                             <td>${fieldValue(bean:addressInstance, field:'postCode')}</td>
     60                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
     61                                ${fieldValue(bean:addressInstance, field:'postCode')}
     62                            </td>
    5163
    52                             <td>
     64                            <td class="notClickable">
    5365                                <g:link action="show" id="${addressInstance.id}">
    5466                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.