1 dump('entering main/main.js\n');
4 dump('entering main_init()\n');
6 if (typeof JSAN == 'undefined') {
8 "The JSAN library object is missing."
11 /////////////////////////////////////////////////////////////////////////////
13 JSAN.errorLevel = "die"; // none, warn, or die
14 JSAN.addRepository('..');
16 //JSAN.use('test.test'); test.test.hello_world();
23 JSAN.use('util.error');
24 G.error = new util.error();
25 G.error.sdump('D_ERROR','Testing');
27 JSAN.use('main.window');
28 G.window = new main.window();
30 JSAN.use('main.network');
31 G.network = new main.network();
33 G.test_array = [ "a", "b", "c" ];
34 G.test_object = { "a" : "b", "c" : "d", "e" : "f" };
35 G.test = function(t) {
36 dump(js2JSON( t ) + '\n');
39 JSAN.use('auth.controller');
40 G.auth = new auth.controller( mw );
42 G.auth.on_login = function() {
44 JSAN.use('OpenILS.data');
45 G.OpenILS.data = new OpenILS.data( G.auth );
46 G.OpenILS.data.on_complete = function () {
48 G.window.open('http://gapines.org/xul/server/test.xul','test','chrome');
50 G.OpenILS.data.init();
55 /////////////////////////////////////////////////////////////////////////////
58 var error = "!! This software has encountered an error. Please tell your friendly " +
59 "system administrator or software developer the following:\n" + E + '\n';
60 try { G.error.sdump('D_ERROR',error); } catch(E) { dump(error); }
63 dump('exiting main_init()\n');
66 dump('exiting main/main.js\n');