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

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