From bed7041d121c3d9c7eb5fe240fe77da91c13186a Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 20 Sep 2005 19:59:22 +0000 Subject: [PATCH] trying to motivate myself to clean up auth git-svn-id: svn://svn.open-ils.org/ILS/trunk@1840 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/evergreen/auth/auth.js | 56 ++++++++++++++----- 1 file changed, 43 insertions(+), 13 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/auth/auth.js b/Evergreen/staff_client/chrome/content/evergreen/auth/auth.js index 048eb13ae2..136cdd1c54 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/auth/auth.js +++ b/Evergreen/staff_client/chrome/content/evergreen/auth/auth.js @@ -1,22 +1,52 @@ -var G = {}; // the master Global variable +// the master Global variable +var G = { +///////////////////////////////////////////////////////////////////////////////////// + + // pointer to the auth window + 'main_window' : self, + + // list of open window references, used for debugging in shell + 'win_list' : [], + + // list of Top Level menu interface window references + 'appshell_list' : [], + + // list of documents for debugging. BROKEN + 'doc_list' : [], + + // Windows need unique names. This number helps. + 'window_name_increment' : 0, + + // This number gets put into the title bar for Top Level menu interface windows + 'appshell_name_increment' : 0, + + // I was using this to make sure I could shove references into new windows + // correctly. However, it's JSON that tends to behave weirdly when crossing + // window boundaries. [ 'a', 'b', 'c' ] could turn into { '1' : 'a', '2' : 'b', + 'main_test_variable' : 'Hello World', + +///////////////////////////////////////////////////////////////////////////////////// + + // Flag for whether the staff client should act as if it were offline or not + 'offline' : false, + + // Array of Session Keys. This is an array mostly by accident, we usually + // only deal with one session. But this could be useful for implementing + // overrides with other logins. + 'auth_ses' = [], + + // Org Unit for the login user + 'user_ou' : '' + +///////////////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////////////////// +}; var debug_ignore_auth_failures = false; -G.offline = false; -G['main_window'] = self; -G['win_list'] = []; -G['appshell_list'] = []; -G['doc_list'] = []; -G['window_name_increment'] = 0; -G['appshell_name_increment'] = 0; -G['auth_ses'] = ''; -G['user_ou'] = ''; -G['main_test_variable'] = 'Hello World'; G['org_tree'] = ''; G['my_orgs'] = []; G['my_orgs_hash'] = {}; -G['fieldmap'] = ''; -G['patrons'] = {}; G['ap_list'] = []; // actor::profile G['ap_hash'] = {}; -- 2.43.2