let's try writing to user chrome instead of system chrome
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Feb 2007 03:13:10 +0000 (03:13 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Feb 2007 03:13:10 +0000 (03:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6917 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/file.js

index c1107e2..3cf07bb 100644 (file)
@@ -30,17 +30,17 @@ util.file.prototype = {
                        if (!fname) throw('Must specify a filename.');
 
                        switch(path) {
-                               case 'profile' :
-                                       this._file = this.dirService.get( "UChrom",  Components.interfaces.nsIFile );
-                                       //this._file = this.dirService.get( "ProfD",  Components.interfaces.nsIFile );
-                               break;
                                case 'chrome' : 
-                               default:
                                        this._file = this.dirService.get( "AChrom",  Components.interfaces.nsIFile );
                                        this._file.append(myPackageDir); 
                                        this._file.append("content"); 
                                        this._file.append("conf"); 
                                break;
+                               default:
+                               case 'profile' :
+                                       this._file = this.dirService.get( "UChrm",  Components.interfaces.nsIFile );
+                                       //this._file = this.dirService.get( "ProfD",  Components.interfaces.nsIFile );
+                               break;
                        }
                        this._file.append(fname);