From: phasefx Date: Wed, 22 Sep 2010 00:55:55 +0000 (+0000) Subject: use fieldmapper.standardRequest here for easier configuration of the network timeout... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=641c39614d908e37b79b3c2ebe77b59ece8e0860;p=evergreen%2Fbjwebb.git 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 --- diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 83b9ae6d9..3486ced33 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) {