From 641c39614d908e37b79b3c2ebe77b59ece8e0860 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 22 Sep 2010 00:55:55 +0000 Subject: [PATCH] use fieldmapper.standardRequest here for easier configuration of the network timeout (the full pull list can take a while to return) git-svn-id: svn://svn.open-ils.org/ILS/trunk@17879 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/holds.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 83b9ae6d9f..3486ced33c 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -302,7 +302,13 @@ patron.holds.prototype = { } JSAN.use('util.print'); var print = new util.print('default'); - var robj = obj.network.simple_request('HTML_HOLD_PULL_LIST',[ses()]); + var robj = fieldmapper.standardRequest( + [ api.HTML_HOLD_PULL_LIST.app, api.HTML_HOLD_PULL_LIST.method ], + { async: false, + timeout: 180, + params: [ses()], + } + ); if (typeof robj.ilsevent != 'undefined') { throw(robj); } print.simple( robj.template_output().data() ); } catch(E) { -- 2.11.0