regexp for robust filename mangling
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Sep 2010 15:49:26 +0000 (15:49 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Sep 2010 15:49:26 +0000 (15:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17655 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/bindings.xml

index f16d773..6eae692 100644 (file)
                             }
                            
                             try { // fail silently if no custom properties file exists
-                                var custom_src = String(this.src).replace('.','_custom.'); 
+                                var custom_src = String(this.src).replace(/\.properties$/,'_custom.properties'); 
                                 var x2 = new XMLHttpRequest();
                                 x2.open("GET",custom_src,false);
                                 x2.send(null);