From 3b7d44f6899692519510fa289a5359854884cfc7 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 17 Mar 2006 15:33:00 +0000 Subject: [PATCH] for now, let's slow things down and flesh one row at a time.. paging interface is the future git-svn-id: svn://svn.open-ils.org/ILS/trunk@3385 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/server/patron/search_result.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.js b/Open-ILS/xul/staff_client/server/patron/search_result.js index 6170879471..2c3476581e 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.js +++ b/Open-ILS/xul/staff_client/server/patron/search_result.js @@ -92,6 +92,7 @@ patron.search_result.prototype = { }, 'search' : function(query) { + var obj = this; var search_hash = {}; for (var i in query) { switch( i ) { @@ -123,11 +124,24 @@ patron.search_result.prototype = { api.FM_AU_IDS_RETRIEVE_VIA_HASH.method, [ this.session, search_hash ] ); + //this.list.append( { 'retrieve_id' : results[i], 'row' : {} } ); + var funcs = []; + + function gen_func(r) { + return function() { + obj.list.append( { 'retrieve_id' : r, 'row' : {} } ); + } + } + for (var i = 0; i < results.length; i++) { - this.list.append( { 'retrieve_id' : results[i], 'row' : {} } ); + funcs.push( gen_func(results[i]) ); } + JSAN.use('util.exec'); var exec = new util.exec(); + exec.chain( funcs ); + } catch(E) { this.error.sdump('D_ERROR','patron.search_result.search: ' + js2JSON(E)); + alert(E); } } -- 2.43.2