[open-ils-commits] r18478 - trunk/Open-ILS/web/js/dojo/openils (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Oct 26 16:04:06 EDT 2010


Author: miker
Date: 2010-10-26 16:04:01 -0400 (Tue, 26 Oct 2010)
New Revision: 18478

Modified:
   trunk/Open-ILS/web/js/dojo/openils/XUL.js
Log:
allow openils.XUL to work (and report false for isXUL()) outside xulrunner/firefox

Modified: trunk/Open-ILS/web/js/dojo/openils/XUL.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/XUL.js	2010-10-26 19:36:35 UTC (rev 18477)
+++ trunk/Open-ILS/web/js/dojo/openils/XUL.js	2010-10-26 20:04:01 UTC (rev 18478)
@@ -8,6 +8,7 @@
         return Boolean(dojo.cookie('xul')) || Boolean(window.IAMXUL);
     }
 
+ try {
     openils.XUL.buildId = function() {
         return window.XUL_BUILD_ID || '';
     }
@@ -155,4 +156,5 @@
             return 0;
         }
     };
+ }catch (e) {/*meh*/}
 }



More information about the open-ils-commits mailing list