From fc34c57be21b9a17fefe6ab325e2ca91a85d0251 Mon Sep 17 00:00:00 2001 From: phasefx Date: Sat, 15 Mar 2008 05:52:00 +0000 Subject: [PATCH] support empty params for these utility functions git-svn-id: svn://svn.open-ils.org/ILS/trunk@9043 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/file.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/file.js b/Open-ILS/xul/staff_client/chrome/content/util/file.js index 2bbe3d27fa..1f4ceaf094 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/file.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/file.js @@ -254,6 +254,7 @@ util.file.prototype = { 'export_file' : function(params) { try { var obj = this; + if (typeof params == 'undefined') params = {}; params.mode = 'save'; if (typeof params.data == 'undefined') throw('Need a .data field to export'); netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); @@ -282,6 +283,7 @@ util.file.prototype = { 'import_file' : function(params) { try { var obj = this; + if (typeof params == 'undefined') params = {}; params.mode = 'open'; netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var f = obj.pick_file(params); -- 2.11.0