Fix "Record 1 of 0" pet peeve. Not sure why record count is coming in as 0, but we...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Mar 2009 06:03:00 +0000 (06:03 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Mar 2009 06:03:00 +0000 (06:03 +0000)
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

index d9e3316..088e0bc 100644 (file)
@@ -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;