From 479152d3c52b3fed6038c17cb628541135f75c2c Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 5 Mar 2009 06:03:00 +0000 Subject: [PATCH] Fix "Record 1 of 0" pet peeve. Not sure why record count is coming in as 0, but we'll use a slightly ugly work around for that. git-svn-id: svn://svn.open-ils.org/ILS/trunk@12414 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/opac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/opac.js b/Open-ILS/xul/staff_client/server/cat/opac.js index d9e3316a45..088e0bc6e1 100644 --- a/Open-ILS/xul/staff_client/server/cat/opac.js +++ b/Open-ILS/xul/staff_client/server/cat/opac.js @@ -169,7 +169,7 @@ function set_opac() { win.attachEvt("rdetail", "nextPrevDrawn", function(rIndex,rCount){ - $('record_pos').setAttribute('value', document.getElementById('offlineStrings').getFormattedString('cat.record.counter', [(1+rIndex), rCount])); + $('record_pos').setAttribute('value', document.getElementById('offlineStrings').getFormattedString('cat.record.counter', [(1+rIndex), rCount : rCount : 1])); if (win.rdetailNext) { g.f_record_next = function() { g.view_override = g.view; -- 2.11.0