From 9e494b92121ab304b1cd8bf6888392cb95440941 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 8 Aug 2007 19:18:46 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/server/cat/record_buckets.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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' : [ -- 2.11.0