Ignore:
Timestamp:
Apr 19, 2010, 2:07:48 AM (15 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/inventoryLocationDetailed/list.gsp

    r377 r498  
    3535                    <tbody>
    3636                    <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance">
    37                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'/>
     37                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    3838
    3939                       
    40                             <td>${fieldValue(bean:inventoryLocationInstance, field:'id')}</td>
     40                            <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
     41                                ${fieldValue(bean:inventoryLocationInstance, field:'id')}
     42                            </td>
    4143                       
    42                             <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td>
     44                            <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
     45                                ${fieldValue(bean:inventoryLocationInstance, field:'name')}
     46                            </td>
    4347                       
    44                             <td>${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}</td>
     48                            <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
     49                                ${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}
     50                            </td>
    4551                       
    46                             <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td>
     52                            <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
     53                                ${fieldValue(bean:inventoryLocationInstance, field:'isActive')}
     54                            </td>
    4755
    48                             <td>
     56                            <td class="notClickable">
    4957                                <g:link action="show" id="${inventoryLocationInstance.id}">
    5058                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.