mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2282 #comment fix next page or previous page display for results #time 3h
This commit is contained in:
@@ -88,5 +88,12 @@
|
|||||||
.dialog-Medium {
|
.dialog-Medium {
|
||||||
height: 523px!important;
|
height: 523px!important;
|
||||||
}
|
}
|
||||||
|
.paginator a {
|
||||||
|
background: none!important;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
padding: 0 9px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@@ -99,19 +99,35 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="paginator">
|
<td class="paginator">
|
||||||
{% if Page - 1 > 0 %}
|
{% if Page - 1 > 0 %}
|
||||||
<a href="{{ path('prod_workzone_search', { 'Query' : Query, 'Year' : Year, 'Type' : Type, 'Page' : (Page - 1) }) }}" class="result">
|
<a href="{{ path('prod_workzone_search', { 'Query' : Query, 'Year' : Year, 'Type' : Type, 'Page' : (Page - 1) }) }}" class="result prev_res">
|
||||||
<img src="/assets/prod/images/Basket/Browser/left.png" />
|
<
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span>
|
<span>
|
||||||
Page {{ Page }} / {{ MaxPage }}
|
Page {{ Page }} / {{ MaxPage }}
|
||||||
</span>
|
</span>
|
||||||
{% if Page + 1 <= MaxPage %}
|
{% if Page + 1 <= MaxPage %}
|
||||||
<a href="{{ path('prod_workzone_search', { 'Query' : Query, 'Year' : Year, 'Type' : Type, 'Page' : (Page + 1) }) }}" class="result">
|
<a href="{{ path('prod_workzone_search', { 'Query' : Query, 'Year' : Year, 'Type' : Type, 'Page' : (Page + 1) }) }}" class="result next_res">
|
||||||
<img src="/assets/prod/images/Basket/Browser/right.png" />
|
>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
//load the next result page
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
jQuery('.next_res').click(function(){
|
||||||
|
jQuery('.results').load($(this).attr('href'));
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
//load the prev result page
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
jQuery('.prev_res').click(function(){
|
||||||
|
jQuery('.results').load($(this).attr('href'));
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
Reference in New Issue
Block a user