http://trac.tiddlywiki.org/changeset/12347

FND
2010-08-05 00:25:53 -0700 (Thu, 05 Aug 2010)
27
minor stylistic adjustments

---------------

U   Trunk/core/js/Import.js

---------------

Modified: Trunk/core/js/Import.js
===================================================================
--- Trunk/core/js/Import.js     2010-08-04 13:04:23 UTC (rev 12346)
+++ Trunk/core/js/Import.js     2010-08-05 07:25:53 UTC (rev 12347)
@@ -99,9 +99,9 @@
 config.macros.importTiddlers.onBrowseChange = function(e)
 {
        var wizard = new Wizard(this);
-       if (this.files && this.files[0]) {
+       if(this.files && this.files[0]) {
                try {
-                       
netscape.security.PrivilegeManager.enablePrivilege('UniversalFileRead');
+                       
netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");
                } catch (ex) {
                        showException(ex);
                }
@@ -115,13 +115,13 @@
 
 config.macros.importTiddlers.getURLFromLocalPath = function(v)
 {
-       if(!v||!v.length)
+       if(!v || !v.length)
                return v;
        v = v.replace(/\\/g,"/"); // use "/" for cross-platform consistency
        var u;
        var t = v.split(":");
-       var p = t[1]||t[0]; // remove drive letter (if any)
-       if (t[1] && (t[0]=="http"||t[0]=="https"||t[0]=="file")) {
+       var p = t[1] || t[0]; // remove drive letter (if any)
+       if(t[1] && (t[0] == "http" || t[0] == "https" || t[0] == "file")) {
                //# input is already a URL
                u = v;
        } else if(p.substr(0,1)=="/") {
@@ -131,7 +131,7 @@
                //# path is relative, add current document protocol+domain+path
                var c = document.location.href.replace(/\\/g,"/");
                var pos = c.lastIndexOf("/");
-               if (pos!=-1)
+               if(pos!=-1)
                        c = c.substr(0,pos); // remove filename
                u = c + "/" + p;
        }

-- 
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.

Reply via email to