]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/opac/common/js/init.js
moved isXUL to RemoteRequest
[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", drawOrgTree); 
9 attachEvt("common", "unload", _tree_killer);
10 attachEvt("common", "unload", clearUIObjects);
11 attachEvt("common", "unload", cleanRemoteRequests);
12
13 function init() {
14         runEvt('common','init');
15         switch(findCurrentPage()) {
16                 case MRESULT: runEvt('mresult', 'run'); break;
17                 case RRESULT: runEvt('rresult', 'run'); break;
18         }
19 }
20
21 function windowUnload() { runEvt("common", "unload"); }