root/trunk/grails-app/views/advancedQuery/_resultbuttons.gsp @ 1798

Revision 1798, 1.0 KB (checked in by robert@…, 3 years ago)

After searching, several actions can be performed on search results. These actions are called by sending data to a URL. This was done using the HTTP GET method, but that resulted in error with the length of the query string (see #422). This is solved by sending all data using the HTTP POST method.

  • Property svn:keywords set to Rev Author Date
Line 
1<p class="options multiple">
2        <g:if test="${search.getNumResults() == 0}">
3                <a href="#" onClick="return false;" class="searchIn disabled">Search within results</a>
4        </g:if>
5        <g:else>
6                <g:link class="searchIn" action="searchIn" id="${queryId}">Search within results</g:link>
7        </g:else>
8        <br />
9       
10        <g:link class="search" action="index">Search again</g:link><br />
11        <g:link class="discard" action="discard" id="${queryId}">Discard results</g:link><br />
12        <g:link class="listPrevious" action="list">Previous searches</g:link>
13</p>
14<p class="options multiple">
15        <g:each in="${actions}" var="action">
16                <g:if test="${search.getNumResults() == 0}">
17                        <a href="#" onClick="return false;" class="performAction ${action.name} disabled">${action.description}</a>
18                </g:if>
19                <g:else>
20                        <a class="performAction ${action.name}" href="${action.url}" onClick="performAction( $('form#results'), '${action.name}', '${action.module}', '${action.submitUrl}' ); return false;">${action.description}</a>
21                </g:else>
22                <br />
23        </g:each>
24</p>
25<br clear="all">
Note: See TracBrowser for help on using the browser.