Ignore:
Timestamp:
Feb 15, 2011, 3:05:23 PM (13 years ago)
Author:
robert@…
Message:

Refactored some of the querying stuff and built in 'check all' checkboxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/advancedQuery/results.gsp

    r1512 r1524  
    1818        <%
    1919                def resultFields = search.getShowableResultFields();
    20                 def extraFields = resultFields[ search.getResults()[ 0 ].id ]?.keySet();
     20                def extraFields = search.getShowableResultFieldNames(resultFields);
    2121        %>
    2222        <table id="searchresults" class="paginate">
    2323                <thead>
    2424                        <tr>
    25                                 <th class="nonsortable"></th>
     25                                <th class="nonsortable"><input type="checkbox" id="checkAll" onClick="checkAllPaginated(this);" /></th>
    2626                                <th>Type</th>
    2727                                <th>Id</th>
     
    3939                                                also http://datatables.net/examples/api/form.html and advancedQueryResults.js
    4040                                        */ %>
    41                                         <g:checkBox name="id" value="${result.id}" checked="${false}" />
     41                                        <g:checkBox name="id" value="${result.id}" checked="${false}" onClick="updateCheckAll(this);" />
    4242                                </td>                   
    4343                                <td>${search.entity}</td>
Note: See TracChangeset for help on using the changeset viewer.