Ignore:
Timestamp:
Feb 15, 2011, 3:05:23 PM (10 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/studyresults.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>Title</th>
    2727                        <th>Code</th>
     
    4343                                                also http://datatables.net/examples/api/form.html and advancedQueryResults.js
    4444                                        */ %>
    45                                         <g:checkBox name="id" value="${studyInstance.id}" checked="${false}" />
     45                                        <g:checkBox name="id" value="${studyInstance.id}" checked="${false}" onClick="updateCheckAll(this);" />
    4646                                </td>
    4747                                <td>
Note: See TracChangeset for help on using the changeset viewer.