use fieldmapper.standardRequest here for easier configuration of the network timeout...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 22 Sep 2010 00:55:55 +0000 (00:55 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 22 Sep 2010 00:55:55 +0000 (00:55 +0000)
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

index 83b9ae6..3486ced 100644 (file)
@@ -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) {