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

    r412 r498  
    3333                    <tbody>
    3434                    <g:each in="${departmentInstanceList}" status="i" var="departmentInstance">
    35                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/departmentDetailed/show/${departmentInstance.id}"'/>
     35                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    3636                       
    37                             <td>${fieldValue(bean:departmentInstance, field:'id')}</td>
     37                            <td onclick='window.location = "${request.getContextPath()}/departmentDetailed/show/${departmentInstance.id}"'>
     38                                ${fieldValue(bean:departmentInstance, field:'id')}
     39                            </td>
    3840                       
    39                             <td>${fieldValue(bean:departmentInstance, field:'name')}</td>
     41                            <td onclick='window.location = "${request.getContextPath()}/departmentDetailed/show/${departmentInstance.id}"'>
     42                                ${fieldValue(bean:departmentInstance, field:'name')}
     43                            </td>
    4044                       
    41                             <td>${fieldValue(bean:departmentInstance, field:'description')}</td>
     45                            <td onclick='window.location = "${request.getContextPath()}/departmentDetailed/show/${departmentInstance.id}"'>
     46                                ${fieldValue(bean:departmentInstance, field:'description')}
     47                            </td>
    4248                       
    43                             <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td>
     49                            <td onclick='window.location = "${request.getContextPath()}/departmentDetailed/show/${departmentInstance.id}"'>
     50                                ${fieldValue(bean:departmentInstance, field:'isActive')}
     51                            </td>
    4452
    45                             <td>
     53                            <td class="notClickable">
    4654                                <g:link action="show" id="${departmentInstance.id}">
    4755                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.