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

    r383 r498  
    3535                    <tbody>
    3636                    <g:each in="${manufacturerTypeInstanceList}" status="i" var="manufacturerTypeInstance">
    37                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/manufacturerTypeDetailed/show/${manufacturerTypeInstance.id}"'/>
     37                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    3838
    39                             <td>${fieldValue(bean:manufacturerTypeInstance, field:'id')}</td>
     39                            <td onclick='window.location = "${request.getContextPath()}/manufacturerTypeDetailed/show/${manufacturerTypeInstance.id}"'>
     40                                ${fieldValue(bean:manufacturerTypeInstance, field:'id')}
     41                            </td>
    4042                       
    41                             <td>${fieldValue(bean:manufacturerTypeInstance, field:'name')}</td>
     43                            <td onclick='window.location = "${request.getContextPath()}/manufacturerTypeDetailed/show/${manufacturerTypeInstance.id}"'>
     44                                ${fieldValue(bean:manufacturerTypeInstance, field:'name')}
     45                            </td>
    4246                       
    43                             <td>${fieldValue(bean:manufacturerTypeInstance, field:'description')}</td>
     47                            <td onclick='window.location = "${request.getContextPath()}/manufacturerTypeDetailed/show/${manufacturerTypeInstance.id}"'>
     48                                ${fieldValue(bean:manufacturerTypeInstance, field:'description')}
     49                            </td>
    4450                       
    45                             <td>${fieldValue(bean:manufacturerTypeInstance, field:'isActive')}</td>
     51                            <td onclick='window.location = "${request.getContextPath()}/manufacturerTypeDetailed/show/${manufacturerTypeInstance.id}"'>
     52                                ${fieldValue(bean:manufacturerTypeInstance, field:'isActive')}
     53                            </td>
    4654                           
    47                             <td>
     55                            <td class="notClickable">
    4856                                <g:link action="show" id="${manufacturerTypeInstance.id}">
    4957                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.