[open-ils-commits] r7643 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 8 15:05:46 EDT 2007
Author: miker
Date: 2007-08-08 15:02:44 -0400 (Wed, 08 Aug 2007)
New Revision: 7643
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
Log:
reserving the string "default" is lame, mozilla
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2007-08-08 18:52:07 UTC (rev 7642)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2007-08-08 19:02:44 UTC (rev 7643)
@@ -8,16 +8,16 @@
JSAN.use('util.date');
JSAN.use('OpenILS.data'); this.data = new OpenILS.data(); this.data.init({'via':'stash'});
this.first_pause = true;
-}
+};
-cat.record_buckets.pick_file = function (default) {
+cat.record_buckets.pick_file = function (defaultFileName) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( nsIFilePicker );
fp.init( window, "Save File As", nsIFilePicker.modeSave );
- if (default)
+ if (defaultFileName)
fp.defaultString = default;
fp.appendFilters( nsIFilePicker.filterAll );
@@ -28,7 +28,7 @@
} else {
return null;
}
-}
+};
cat.record_buckets.export_records = function(output_type) {
try {
@@ -64,7 +64,7 @@
} catch(E) {
obj.error.standard_unexpected_error_alert('Records could not be exported.',E);
}
-}
+};
cat.record_buckets.prototype = {
@@ -785,6 +785,6 @@
},
-}
+};
dump('exiting cat.record_buckets.js\n');
More information about the open-ils-commits
mailing list