From eaba45621b11324ea40b49e60d435c9977428299 Mon Sep 17 00:00:00 2001 From: bott Date: Wed, 14 Dec 2011 12:31:30 -0500 Subject: [PATCH] Allow for the page offset when listing the "Result x of y" values. The record details page did not show the page offset correctly, so result 13 would show up as "Result 3 of ###", and result 23 would also show up as "Result 3 of ###". Signed-off-by: bott Signed-off-by: Dan Scott --- Open-ILS/web/opac/skin/default/js/rdetail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index dfc4c7d5f8..ee7762417b 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -85,6 +85,10 @@ function rdetailSetPaging(ids) { break; } } + var cgi = new CGI(); // add the offset if we're not on the first page of results + var offset = parseInt(cgi.param('o')); + if (offset) + i = i + offset; $('np_offset').appendChild(text(i + 1)); $('np_count').appendChild(text(getHitCount())); -- 2.43.2