]> git.evergreen-ils.org Git - Evergreen.git/commit
Adds a xulG.get_new_session() convenience function that can be called by embedded...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 1 Apr 2010 21:25:38 +0000 (21:25 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 1 Apr 2010 21:25:38 +0000 (21:25 +0000)
commit042da73f6987316f3ad972e803f414f0369efc23
tree8eea0fb599372a658aaae0f4a51e26092fccc294
parent10f6e4335fe9f6bce1bfc330c992f1882b91407b
Adds a xulG.get_new_session() convenience function that can be called by embedded dojo interfaces, etc.

Side effect: Sets a session cookie and updates the global OpenILS.data store with the newly acquired authtoken.

Return Value: True if a new authtoken was acquired, otherwise False.

Optional Param: Object with optional keys 'callback' and 'operator_change'.

If 'operator_change' is passed in with a value of true, then the dialog will resemble the Admin->Operator Change dialog, but it is not yet completely implemented (doesn't preserve the existing authtoken).  Otherwise, we get the normal Session Expired dialog.

Callback may be a function that resembles this:

    function( success, authtoken, authtime ) {
        return success; // whatever gets returned here will also be returned by xulG.get_new_session()
    }

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16099 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/util/browser.js