From: phasefx Date: Thu, 5 Mar 2009 07:25:34 +0000 (+0000) Subject: fix the fix for Dan's Record 0 of 1 pet peeve :) server/cat/opac.js is actually... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=aff178a8da7c606420efb80ba29e24913c39ec70;p=Evergreen.git fix the fix for Dan's Record 0 of 1 pet peeve :) server/cat/opac.js is actually dead code at the moment.. if we use it, we lose the back/forth buttons :( git-svn-id: svn://svn.open-ils.org/ILS/trunk@12416 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index af48c41b9b..0ccf048432 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/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; diff --git a/Open-ILS/xul/staff_client/server/cat/opac.js b/Open-ILS/xul/staff_client/server/cat/opac.js index 088e0bc6e1..4ca79f32ea 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 : rCount : 1])); + $('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;