From 9ff0f1663bccec2017b4e53c80bfcb54db560085 Mon Sep 17 00:00:00 2001 From: berick Date: Sat, 2 Apr 2011 09:21:37 -0400 Subject: [PATCH] make next/prev search links not-visible instead of removing entirely to keep page position of links consistent --- Open-ILS/web/css/skin/default/opac/style.css | 2 ++ .../default/opac/parts/result/table.tt2 | 30 ++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index ff9153b6fe..6559ab52ed 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -980,3 +980,5 @@ a.dash-link:hover { text-decoration: underline !important; } #rdetail_cn_browse_div { text-align: center; } .rdetail-author-div { padding-bottom: 10px; } + +.invisible { visibility: hidden; } diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index a46784bc77..ca1961fedf 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -22,24 +22,26 @@ - [% IF page > 0 %] - - Previous - - [% END %] + [% class = 'search_page_nav_link'; + href = '#'; + IF page > 0; + href = propagator _ '&page=' _ (page - 1); + ELSE; class = class _ ' invisible'; END; + %] + Previous - [% IF (page + 1) < page_count %] - - Next - - [% END %] + [% class = 'search_page_nav_link'; + href = '#'; + IF (page + 1) < page_count; + href = propagator _ '&page=' _ (page + 1); + ELSE; class = class _ ' invisible'; END; + %] + Next -- 2.43.2