From: miker Date: Wed, 8 Aug 2007 19:18:46 +0000 (+0000) Subject: pass the obj instance in, now that the function is outside the big data structure X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9e494b92121ab304b1cd8bf6888392cb95440941;p=Evergreen.git pass the obj instance in, now that the function is outside the big data structure git-svn-id: svn://svn.open-ils.org/ILS/trunk@7647 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 8c0f5c1bd4..5685444679 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -30,7 +30,7 @@ cat.record_buckets.pick_file = function (defaultFileName) { } }; -cat.record_buckets.export_records = function(output_type) { +cat.record_buckets.export_records = function(obj, output_type) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); obj.list2.select_all(); @@ -526,22 +526,22 @@ cat.record_buckets.prototype = { 'cmd_export_records_usmarc' : [ ['command'], - function () { return cat.record_buckets.export_records('usmarc') } + function () { return cat.record_buckets.export_records(obj, 'usmarc') } ], 'cmd_export_records_unimarc' : [ ['command'], - function () { return cat.record_buckets.export_records('unimarc') } + function () { return cat.record_buckets.export_records(obj, 'unimarc') } ], 'cmd_export_records_xml' : [ ['command'], - function () { return cat.record_buckets.export_records('xml') } + function () { return cat.record_buckets.export_records(obj, 'xml') } ], 'cmd_export_records_bre' : [ ['command'], - function () { return cat.record_buckets.export_records('bre') } + function () { return cat.record_buckets.export_records(obj, 'bre') } ], 'cmd_merge_records' : [