start << >> end
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 17:14:57 +0000 (17:14 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 17:14:57 +0000 (17:14 +0000)
links only appear when necessary

git-svn-id: svn://svn.open-ils.org/ILS/trunk@2021 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/result_common.js
Open-ILS/web/opac/skin/default/xml/result_table.xml

index 2c65519..697a02f 100644 (file)
@@ -64,6 +64,8 @@ function resultPaginate() {
                G.ui.result.home_link.setAttribute( "href", buildOPACLink(args)); 
                addCSSClass(G.ui.result.home_link, config.css.result.nav_active);
        }
+       if(getDisplayCount() < getHitCount())
+               unHideMe($('start_end_links_span'));
 }
 
 
index 363b2a5..84b0573 100644 (file)
                                                                                <span id='num_pages'> </span>
                                                                        </span>
 
-                                                                       <span style='padding-left: 40px;' >
-                                                                               <a class='search_page_nav_link' id='search_home_link' title="First results page">Start</a>
-                                                                               <a class='search_page_nav_link' id='prev_link' title='Previus page'> &llt;&llt; </a>
+                                                                       <span id='start_end_links_span' class='hide_me' 
+                                                                                       style='padding-left: 40px;' >
+                                                                               <a class='search_page_nav_link' id='search_home_link' 
+                                                                                       title="First results page">Start</a>
+                                                                               <a class='search_page_nav_link' id='prev_link' 
+                                                                                       title='Previus page'> &llt;&llt; </a>
                                                                                <span class='search_page_nav_link' id='page_numbers'> </span>
-                                                                               <a  class='search_page_nav_link' id='next_link' title='Next Page'> &ggt;&ggt; </a>
-                                                                               <a  class='search_page_nav_link' id='end_link' title="Last results page">End</a>
+                                                                               <a  class='search_page_nav_link' id='next_link' 
+                                                                                       title='Next Page'> &ggt;&ggt; </a>
+                                                                               <a  class='search_page_nav_link' id='end_link' 
+                                                                                       title="Last results page">End</a>
                                                                        </span>
 
                                                                </td>