1 dump('entering main/main.js\n');
4 dump('entering main_init()\n');
7 var pref = Components.classes["@mozilla.org/preferences-service;1"]
8 .getService(Components.interfaces.nsIPrefBranch);
10 pref.setCharPref("capability.principal.codebase.p0.granted", "UniversalXPConnect");
11 pref.setCharPref("capability.principal.codebase.p0.id", "http://gapines.org");
14 if (typeof JSAN == 'undefined') {
16 "The JSAN library object is missing."
19 /////////////////////////////////////////////////////////////////////////////
21 JSAN.errorLevel = "die"; // none, warn, or die
22 JSAN.addRepository('..');
24 //JSAN.use('test.test'); test.test.hello_world();
31 JSAN.use('util.error');
32 G.error = new util.error();
33 G.error.sdump('D_ERROR','Testing');
35 JSAN.use('main.window');
36 G.window = new main.window();
38 JSAN.use('auth.controller');
39 G.auth = new auth.controller( mw );
41 G.auth.on_login = function() {
43 JSAN.use('OpenILS.data');
44 G.OpenILS.data = new OpenILS.data( G.auth );
45 G.OpenILS.data.on_complete = function () {
47 G.window.open('http://gapines.org/xul/server/main/menu_frame.xul','test','chrome');
49 G.OpenILS.data.init();
54 /////////////////////////////////////////////////////////////////////////////
57 var error = "!! This software has encountered an error. Please tell your friendly " +
58 "system administrator or software developer the following:\n" + E + '\n';
59 try { G.error.sdump('D_ERROR',error); } catch(E) { dump(error); }
62 dump('exiting main_init()\n');
65 dump('exiting main/main.js\n');