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

    r374 r498  
    3737                    <tbody>
    3838                    <g:each in="${supplierInstanceList}" status="i" var="supplierInstance">
    39                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'/>
     39                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    4040                       
    41                             <td>${fieldValue(bean:supplierInstance, field:'id')}</td>
     41                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
     42                                ${fieldValue(bean:supplierInstance, field:'id')}
     43                            </td>
    4244                       
    43                             <td>${fieldValue(bean:supplierInstance, field:'name')}</td>
     45                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
     46                                ${fieldValue(bean:supplierInstance, field:'name')}
     47                            </td>
    4448                       
    45                             <td>${fieldValue(bean:supplierInstance, field:'description')}</td>
     49                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
     50                                ${fieldValue(bean:supplierInstance, field:'description')}
     51                            </td>
    4652                       
    47                             <td>${fieldValue(bean:supplierInstance, field:'isActive')}</td>
     53                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
     54                                ${fieldValue(bean:supplierInstance, field:'isActive')}
     55                            </td>
    4856                       
    49                             <td>${fieldValue(bean:supplierInstance, field:'supplierType')}</td>
     57                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
     58                                ${fieldValue(bean:supplierInstance, field:'supplierType')}
     59                            </td>
    5060
    51                             <td>
     61                            <td class="notClickable">
    5262                                <g:link action="show" id="${supplierInstance.id}">
    5363                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.