[open-ils-commits] r9044 -
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 15 02:26:29 EDT 2008
Author: phasefx
Date: 2008-03-15 01:52:46 -0400 (Sat, 15 Mar 2008)
New Revision: 9044
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/file.js
Log:
support empty params for these utility functions
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/file.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/file.js 2008-03-15 05:52:00 UTC (rev 9043)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/util/file.js 2008-03-15 05:52:46 UTC (rev 9044)
@@ -254,6 +254,7 @@
'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 @@
'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);
More information about the open-ils-commits
mailing list