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

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