no longer using dtree
[Evergreen.git] / Open-ILS / web / opac / common / js / init.js
index ea10215..0c3055a 100644 (file)
@@ -6,18 +6,16 @@ window.onunload = windowUnload;
 attachEvt("common", "init", loadUIObjects);
 attachEvt("common", "init", initParams);
 attachEvt("common", "init", initCookies);
-attachEvt("common", "init", drawOrgTree); 
+//attachEvt("common", "init", drawOrgTree); 
+
 attachEvt("common", "unload", _tree_killer);
-attachEvt("common", "unload", clearUIObjects);
-attachEvt("common", "unload", cleanRemoteRequests);
+try{ attachEvt("common", "unload", cleanRemoteRequests);} catch(e){}
 
 function init() {
        runEvt('common','init');
-       setFontSize(getFontSize());
-       switch(findCurrentPage()) {
-               case MRESULT: runEvt('mresult', 'run'); break;
-               case RRESULT: runEvt('rresult', 'run'); break;
-       }
+       runEvt("common", "run");
+       checkUserSkin();
+       G.ui.common.now_searching.appendChild(text(findOrgUnit(getLocation()).name()));
 }
 
 function windowUnload() { runEvt("common", "unload"); }