3fad7c8c5fbd0686a2c3247427cbb8710548b623
[Evergreen.git] / Open-ILS / web / opac / common / js / init.js
1
2 /* these events should be used by all */
3
4 window.onunload = windowUnload;
5
6 attachEvt("common", "init", loadUIObjects);
7 attachEvt("common", "init", initParams);
8 attachEvt("common", "init", initCookies);
9 attachEvt("common", "init", drawOrgTree); 
10
11 attachEvt("common", "unload", _tree_killer);
12 //attachEvt("common", "unload", clearUIObjects);
13 attachEvt("common", "unload", cleanRemoteRequests);
14
15 function init() {
16         runEvt('common','init');
17         //setFontSize(getFontSize());
18         runEvt("common", "run");
19         checkUserSkin();
20         G.ui.common.now_searching.appendChild(text(findOrgUnit(getLocation()).name()));
21 }
22
23 function windowUnload() { runEvt("common", "unload"); }