svn commit: r811865 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r811865 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl

jleroux@apache.org
Author: jleroux
Date: Sun Sep  6 19:14:58 2009
New Revision: 811865

URL: http://svn.apache.org/viewvc?rev=811865&view=rev
Log:
Improvment on 811860 (show the pages dropdown only if needed)

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl?rev=811865&r1=811864&r2=811865&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl Sun Sep  6 19:14:58 2009
@@ -19,11 +19,7 @@
 
 <#macro paginationControls>
     <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
-      <#-- if the list size/view size (that is total number of items allowed on the page for this page)
-      is 0 or 1 then there is only 1 page of items - so display the pagination drop down anyhow
-      'cause its cool and people should see it.
-      -->
-      <#if (viewIndexMax?int > -1)>
+      <#if (viewIndexMax?int > 0)>
         <div class="product-prevnext">
             <#-- Start Page Select Drop-Down -->
             <select name="pageSelect" onchange="window.location=this[this.selectedIndex].value;">