Bug 8028 - Make table collapsing on parcel.pl sticky - Hide link for 5 or fewer items.
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 16 Jul 2012 17:11:04 +0000 (13:11 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 12 Sep 2012 15:26:15 +0000 (17:26 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt

index 6ff4993..b92a701 100644 (file)
@@ -52,7 +52,7 @@
        rowCountPending  = $("#pendingt tbody.filterclass tr").length;
        rowCountReceived = $("#receivedt tbody.filterclass tr").length;
        if (rowCountPending  > rowsToCollapse && $.cookie("pendingKeepExpanded") != 1 ) { pendingCollapse(); }
-       if (rowCountReceived > rowsToCollapse && $.cookie("receivedKeepExpanded") != 1 ) { receivedCollapse(); } else { receivedExpand(); }
+       if (rowCountReceived > rowsToCollapse ) { if ( $.cookie("receivedKeepExpanded") != 1 ) { receivedCollapse(); } else { receivedExpand(); } }
     });
 
      // Case-insensitive version of jquery's contains function