[open-ils-commits] r12416 - in trunk/Open-ILS/xul/staff_client: chrome/content/cat server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 5 02:25:37 EST 2009


Author: phasefx
Date: 2009-03-05 02:25:34 -0500 (Thu, 05 Mar 2009)
New Revision: 12416

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

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js	2009-03-05 07:17:15 UTC (rev 12415)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js	2009-03-05 07:25:34 UTC (rev 12416)
@@ -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; 

Modified: trunk/Open-ILS/xul/staff_client/server/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/opac.js	2009-03-05 07:17:15 UTC (rev 12415)
+++ trunk/Open-ILS/xul/staff_client/server/cat/opac.js	2009-03-05 07:25:34 UTC (rev 12416)
@@ -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 : 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; 



More information about the open-ils-commits mailing list