From: Nick Duncan Date: Thu, 10 Sep 2015 18:33:14 +0000 (-0400) Subject: KMAIN-1861 Reduce Number Of Copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e2f56cd498f65dccf9cc427562d9ff6edaddac71;p=working%2FEvergreen.git KMAIN-1861 Reduce Number Of Copies Dynamically Grow Or Shrink Number Of Line Items Signed-off-by: Nick Duncan Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index e30675ba25..ea97da8eca 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -2508,7 +2508,7 @@ function AcqLiTable() { // delete rows if necessary var diff = self.copyCount() - count; if(diff > 0) { - var rows = dojo.query('tr', self.copyTbody).slice(diff); // Fixed Here + var rows = dojo.query('tr', self.copyTbody).slice(0, diff); if(confirm(dojo.string.substitute(localeStrings.DELETE_LI_COPIES_CONFIRM, [diff]))) { dojo.forEach(rows, function(row) {self.deleteCopy(row); }); } else {