From: Alex Arnaud Date: Thu, 24 Jun 2010 17:26:16 +0000 (+0200) Subject: (BUG #4810) parcel.pl: Fix a bug with applying a filter on pending orders displaying X-Git-Tag: v3.02.00-beta~5 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=657ce474c6f32519388e174df02bddba80e142ab;hp=be8c7f9dd1bc8424232f25bfebd7afab3750d2ca;p=koha_fer (BUG #4810) parcel.pl: Fix a bug with applying a filter on pending orders displaying When we apply a filter and click on "Click here to show x items" link, there are duplicates orders which are display. Signed-off-by: Galen Charlton --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl index 93422c2b82..9f7f11e42c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl @@ -31,6 +31,7 @@ // Collapse pending items table function pendingCollapse() { $("#pendingcollapserow").remove(); + $("#pendingt tr").show(); $("#pendingt tbody.filterclass tr:gt(" + (rowsToCollapse-1) + ")").hide(); $("#pendingt").before("

" + _("Only the first ") + rowsToCollapse + _(" items are displayed.") + "" + _("Click here to show all ") + rowCountPending + _(" items") + "<\/a>.<\/p>"); @@ -40,6 +41,7 @@ function pendingExpand() { $("#pendingcollapserow").remove(); $("#pendingt tr").show(); + $("#pendingt tbody.filterclass tr.orderfound").remove(); $("#pendingt").before("

" + rowCountPending + _(" items are displayed.") + "" + _("Click here to show only the first ") + rowsToCollapse + _(" items") + "<\/a>.<\/p>"); } @@ -114,7 +116,7 @@ function clearFilters() { $("#nothingfoundrow").remove(); $("#pendingt tbody.filterclass tr").show(); - $("#pendingt tbody.filterclass tr.orderfound").remove(); + //$("#pendingt tbody.filterclass tr.orderfound").remove(); pendingExpand(); }