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/assetDetailed/search.gsp

    r467 r498  
    116116                        <tbody>
    117117                        <g:each in="${assetInstanceList}" status="i" var="assetInstance">
    118                             <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/>
     118                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    119119                           
    120                                 <td>${fieldValue(bean:assetInstance, field:'id')}</td>
     120                                <td onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'>
     121                                    ${fieldValue(bean:assetInstance, field:'id')}
     122                                </td>
    121123
    122                                 <td>${fieldValue(bean:assetInstance, field:'name')}</td>
     124                                <td onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'>
     125                                    ${fieldValue(bean:assetInstance, field:'name')}
     126                                </td>
    123127
    124                                 <td>${fieldValue(bean:assetInstance, field:'description')}</td>
     128                                <td onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'>
     129                                    ${fieldValue(bean:assetInstance, field:'description')}
     130                                </td>
    125131
    126                                 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td>
     132                                <td onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'>
     133                                    ${fieldValue(bean:assetInstance, field:'isActive')}
     134                                </td>
    127135
    128                                 <td>${fieldValue(bean:assetInstance, field:'section')}</td>
     136                                <td onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'>
     137                                    ${fieldValue(bean:assetInstance, field:'section')}
     138                                </td>
    129139
    130                                 <td>
     140                                <td class="notClickable">
    131141                                    <g:link action="show" id="${assetInstance.id}">
    132142                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.