From: miker Date: Wed, 8 Aug 2007 18:10:23 +0000 (+0000) Subject: building a better URI X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b9ea8927f886b5c13ec6a2e3b4bbdc6973861393;p=Evergreen.git building a better URI git-svn-id: svn://svn.open-ils.org/ILS/trunk@7637 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.js b/Open-ILS/xul/staff_client/server/cat/record_buckets.js index 6e997107f9..70dcac8aca 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -496,9 +496,11 @@ cat.record_buckets.prototype = { function (o) { return JSON2js(o).docid } ); + var proto_uri = 'http://' + window.location.hostname + '/exporter'; + var uri = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) - .newURI("/export?id=" + record_ids.join('&id='), null, null); + .newURI( proto_uri + '?id=' + record_ids.join('&id='), null, null ); var file = pick_file();