http://trac.tiddlywiki.org/changeset/12340
MartinBudden
2010-08-04 03:26:38 -0700 (Wed, 04 Aug 2010)
37
Ticket #1169
local file path problem
---------------
U Trunk/core/js/Import.js
---------------
Modified: Trunk/core/js/Import.js
===================================================================
--- Trunk/core/js/Import.js 2010-08-03 17:13:26 UTC (rev 12339)
+++ Trunk/core/js/Import.js 2010-08-04 10:26:38 UTC (rev 12340)
@@ -99,6 +99,13 @@
config.macros.importTiddlers.onBrowseChange = function(e)
{
var wizard = new Wizard(this);
+ if (this.files && this.files[0]) {
+ try {
+
netscape.security.PrivilegeManager.enablePrivilege('UniversalFileRead');
+ } catch (ex) {
+ showException(ex);
+ }
+ }
var fileInput = wizard.getElement("txtPath");
fileInput.value =
config.macros.importTiddlers.getURLFromLocalPath(this.value);
var serverType = wizard.getElement("selTypes");
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.