[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. b334f72f06831c4c497df539e9a2a35908bb85a6

Evergreen Git git at git.evergreen-ils.org
Wed Dec 14 23:40:29 EST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  b334f72f06831c4c497df539e9a2a35908bb85a6 (commit)
      from  03f59215d8f659619135b8c30974b1196fa17728 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b334f72f06831c4c497df539e9a2a35908bb85a6
Author: bott <bott at grpl.org>
Date:   Wed Dec 14 12:31:30 2011 -0500

    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 <bott at grpl.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js
index 13c5eab..70c27b3 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()));

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/opac/skin/default/js/rdetail.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list