PHRAS-2282 #comment fix next page or previous page display for results #time 3h

This commit is contained in:
Harrys Ravalomanana
2019-08-14 16:18:15 +04:00
parent 074e1cf9ea
commit 0d84aa040a
2 changed files with 28 additions and 5 deletions

View File

@@ -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>

View File

@@ -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>