Show
Ignore:
Timestamp:
10-02-11 13:04:32 (3 years ago)
Author:
robert@…
Message:

Improved query views

Files:
1 modified

Legend:

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

    r1501 r1512  
    1 <p class="options"> 
    2         <g:link class="searchIn" action="searchIn" id="${queryId}">Search within results</g:link><br /> 
     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         
    310        <g:link class="search" action="index">Search again</g:link><br /> 
    411        <g:link class="discard" action="discard" id="${queryId}">Discard results</g:link><br /> 
    512        <g:link class="listPrevious" action="list">Previous searches</g:link> 
    613</p> 
    7 <p class="options"> 
     14<p class="options multiple"> 
    815        <g:each in="${actions}" var="action"> 
    9                 <a class="performAction ${action.name}" href="${action.url}" onClick="performAction( $('form#results'), '${action.name}', '${action.module}' ); return false;">${action.description}</a><br /> 
     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}' ); return false;">${action.description}</a> 
     21                </g:else> 
     22                <br /> 
    1023        </g:each> 
    1124</p>