From: dbs Date: Thu, 5 Mar 2009 06:03:00 +0000 (+0000) Subject: Fix "Record 1 of 0" pet peeve. Not sure why record count is coming in as 0, but we... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=479152d3c52b3fed6038c17cb628541135f75c2c;p=evergreen%2Ftadl.git 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 --- 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;