read xul cookie as well
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 May 2009 18:51:10 +0000 (18:51 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 May 2009 18:51:10 +0000 (18:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13179 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/XUL.js

index 440ade7..fa3e5f1 100644 (file)
@@ -1,10 +1,11 @@
 if(!dojo._hasResource["openils.XUL"]) {
 
     dojo.provide("openils.XUL");
+    dojo.require('dojo.cookie');
     dojo.declare('openils.XUL', null, {});
 
     openils.XUL.isXUL = function() {
-        return Boolean(window.IAMXUL);
+        return Boolean(dojo.cookie('xul')) || Boolean(window.IAMXUL);
     }
 
     openils.XUL.buildId = function() {