change this back the way it was until we make a build directive for it, and a way...
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Feb 2007 16:55:31 +0000 (16:55 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Feb 2007 16:55:31 +0000 (16:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6941 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 3cf07bb..6c03f96 100644 (file)
@@ -29,18 +29,19 @@ util.file.prototype = {
                        if (!fname) { fname = this.name; } else { this.name = fname; }
                        if (!fname) throw('Must specify a filename.');
 
+                       /* FIXME - need to make a build directive for this */
                        switch(path) {
+                               case 'profile' :
+                                       this._file = this.dirService.get( "UChrm",  Components.interfaces.nsIFile );
+                                       //this._file = this.dirService.get( "ProfD",  Components.interfaces.nsIFile );
+                               break;
+                               default:
                                case 'chrome' : 
                                        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);