[open-ils-commits] r12414 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 5 01:03:03 EST 2009


Author: dbs
Date: 2009-03-05 01:03:00 -0500 (Thu, 05 Mar 2009)
New Revision: 12414

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/opac.js
Log:
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.


Modified: trunk/Open-ILS/xul/staff_client/server/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/opac.js	2009-03-05 04:42:17 UTC (rev 12413)
+++ trunk/Open-ILS/xul/staff_client/server/cat/opac.js	2009-03-05 06:03:00 UTC (rev 12414)
@@ -169,7 +169,7 @@
 
 				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; 



More information about the open-ils-commits mailing list