[open-ils-commits] r17655 - trunk/Open-ILS/xul/staff_client/chrome/content/main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 14 11:49:29 EDT 2010


Author: phasefx
Date: 2010-09-14 11:49:26 -0400 (Tue, 14 Sep 2010)
New Revision: 17655

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
Log:
regexp for robust filename mangling


Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml	2010-09-14 15:45:30 UTC (rev 17654)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml	2010-09-14 15:49:26 UTC (rev 17655)
@@ -190,7 +190,7 @@
                             }
                            
                             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);



More information about the open-ils-commits mailing list