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

    r199 r498  
    3737                    <tbody>
    3838                    <g:each in="${taskRecurringScheduleInstanceList}" status="i" var="taskRecurringScheduleInstance">
    39                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'/>
     39                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    4040
    4141                       
    42                             <td><g:link action="show" id="${taskRecurringScheduleInstance.id}">${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}</g:link></td>
     42                            <td onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'>
     43                                ${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}
     44                            </td>
    4345                       
    44                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'task')}</td>
     46                            <td onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'>
     47                                ${fieldValue(bean:taskRecurringScheduleInstance, field:'task')}
     48                            </td>
    4549                       
    46                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'recurEvery')}</td>
     50                            <td onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'>
     51                                ${fieldValue(bean:taskRecurringScheduleInstance, field:'recurEvery')}
     52                            </td>
    4753                       
    48                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'recurPeriod')}</td>
     54                            <td onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'>
     55                                ${fieldValue(bean:taskRecurringScheduleInstance, field:'recurPeriod')}
     56                            </td>
    4957                       
    50                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td>
     58                            <td onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'>
     59                                ${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}
     60                            </td>
    5161
    52                             <td>
     62                            <td class="notClickable">
    5363                                <g:link action="show" id="${taskRecurringScheduleInstance.id}">
    5464                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.