[open-ils-commits] r9043 -
trunk/Open-ILS/xul/staff_client/chrome/content/util
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 15 02:25:42 EDT 2008
Author: phasefx
Date: 2008-03-15 01:52:00 -0400 (Sat, 15 Mar 2008)
New Revision: 9043
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/file.js
Log:
support empty params for these utility functions
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/file.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/file.js 2008-03-15 05:49:00 UTC (rev 9042)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/file.js 2008-03-15 05:52:00 UTC (rev 9043)
@@ -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