]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/opac/common/js/init.js
changed org tree to be like the old org tree (children fleshed, parents are ID's)
[working/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 attachEvt("common", "unload", _tree_killer);
11 attachEvt("common", "unload", clearUIObjects);
12 attachEvt("common", "unload", cleanRemoteRequests);
13
14 function init() {
15         runEvt('common','init');
16         setFontSize(getFontSize());
17         runEvt("common", "run");
18
19         /*
20         switch(findCurrentPage()) {
21                 case MRESULT: runEvt('mresult', 'run'); break;
22                 case RRESULT: runEvt('rresult', 'run'); break;
23         }
24         */
25 }
26
27 function windowUnload() { runEvt("common", "unload"); }