Bug 8028 - Followup
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 7 Sep 2012 16:17:23 +0000 (12:17 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 12 Sep 2012 15:26:17 +0000 (17:26 +0200)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt

index b92a701..9282846 100644 (file)
@@ -51,7 +51,7 @@
 
        rowCountPending  = $("#pendingt tbody.filterclass tr").length;
        rowCountReceived = $("#receivedt tbody.filterclass tr").length;
-       if (rowCountPending  > rowsToCollapse && $.cookie("pendingKeepExpanded") != 1 ) { pendingCollapse(); }
+       if (rowCountPending > rowsToCollapse ) { if ( $.cookie("pendingKeepExpanded") != 1 ) { pendingCollapse(); } else { pendingExpand(); } }
        if (rowCountReceived > rowsToCollapse ) { if ( $.cookie("receivedKeepExpanded") != 1 ) { receivedCollapse(); } else { receivedExpand(); } }
     });