[open-ils-commits] r10850 -
trunk/Open-ILS/xul/staff_client/server/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 16 15:03:10 EDT 2008
Author: phasefx
Date: 2008-10-16 15:03:06 -0400 (Thu, 16 Oct 2008)
New Revision: 10850
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul
trunk/Open-ILS/xul/staff_client/server/circ/util.js
Log:
we're going to let the middle layer completely handle the limit for past circ retrieval
Modified: trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul 2008-10-16 18:37:18 UTC (rev 10849)
+++ trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul 2008-10-16 19:03:06 UTC (rev 10850)
@@ -51,7 +51,6 @@
g.error.sdump('D_TRACE','my_init() for circ_circ_brief.xul');
g.copy_id = xul_param('copy_id',{'modal_xulG':true});
- g.count = xul_param('count',{'modal_xulG':true});
JSAN.use('util.network'); g.network = new util.network();
JSAN.use('util.date');
@@ -78,7 +77,7 @@
try {
$('r_last').disabled = true; $('r_all').disabled = true;
g.circs = g.network.simple_request('FM_CIRC_RETRIEVE_VIA_COPY',
- [ ses(), g.copy_id, g.count ]);
+ [ ses(), g.copy_id ]);
if (g.circs == null || typeof g.circs.ilsevent != 'undefined') throw(circs);
if (g.circs.length == 0) return;
//g.circs = g.circs.reverse(); /* put the most recent at the top */
Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js 2008-10-16 18:37:18 UTC (rev 10849)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js 2008-10-16 19:03:06 UTC (rev 10850)
@@ -86,20 +86,18 @@
};
-circ.util.show_last_few_circs = function(selection_list,count) {
+circ.util.show_last_few_circs = function(selection_list) {
var obj = {};
JSAN.use('util.error'); obj.error = new util.error();
JSAN.use('util.window'); obj.win = new util.window();
JSAN.use('util.network'); obj.network = new util.network();
JSAN.use('OpenILS.data'); obj.data = new OpenILS.data(); obj.data.init({'via':'stash'});
- if (!count) count = 4;
-
for (var i = 0; i < selection_list.length; i++) {
try {
if (typeof selection_list[i].copy_id == 'undefined' || selection_list[i].copy_id == null) continue;
var url = xulG.url_prefix( urls.XUL_CIRC_SUMMARY ); // + '?copy_id=' + selection_list[i].copy_id + '&count=' + count;
- var my_xulG = obj.win.open( url, 'show_last_few_circs', 'chrome,resizable,modal', { 'copy_id' : selection_list[i].copy_id, 'count' : count } );
+ var my_xulG = obj.win.open( url, 'show_last_few_circs', 'chrome,resizable,modal', { 'copy_id' : selection_list[i].copy_id } );
if (typeof my_xulG.retrieve_these_patrons == 'undefined') continue;
var patrons = my_xulG.retrieve_these_patrons;
More information about the open-ils-commits
mailing list