var loaded = false;
+function isXUL() {
+ try {
+ if(IAMXUL)
+ return true;
+ } catch(E) {
+ return false;
+ }
+}
+
function globalInit() {
+ debug(" --- XUL IS " + isXUL() );
+
var page_name = globalPageTarget;
if(!page_name)
globalPage.init();
globalPage.setLocDisplay();
globalPage.locationTree = globalOrgTreeWidget;
+
+ if(globalSearchBarChunk)
+ globalSearchBarChunk.reset();
if( globalSearchBarFormChunk != null)
globalSearchBarFormChunk.resetPage();
globalOrgTreeWidget = new LocationTree(globalOrgTree);
globalUser = UserSession.instance();
- if(globalUser.verifySession()) {
+ var ses = null;
+ if(isXUL())
+ ses = G['auth_ses'][0]; /* G is shoved in by XUL */
+
+ if(globalUser.verifySession(ses)) {
globalUser.grabOrgUnit();
} else {