workstation name in titlebar
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 12 Mar 2006 19:55:52 +0000 (19:55 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 12 Mar 2006 19:55:52 +0000 (19:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3339 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/auth/session.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul

index 4e8a84f..bfeea62 100644 (file)
@@ -38,6 +38,7 @@ auth.session.prototype = {
                                if (data.ws_info[ this.view.server_prompt.value ]) {
                                        params.type = 'staff';
                                        params.workstation = data.ws_info[ this.view.server_prompt.value ].name;
+                                       data.ws_name = params.workstation; data.stash('ws_name');
                                }
 
                                var robj = this.network.request(
index 6bbab72..79365ab 100644 (file)
@@ -66,8 +66,8 @@
 
                                // FIXME - Use workstation ou when we get it instead of staff home_ou
                                document.title = g.window.appshell_name_increment() + ': ' 
-                                       + g.data.list.au[0].usrname() + '@' 
-                                       + g.data.hash.aou[ g.data.list.au[0].home_ou() ].shortname();
+                                       + g.data.list.au[0].usrname() + ' (' + g.data.ws_name + '@' 
+                                       + g.data.hash.aou[ g.data.list.au[0].ws_ou() ].shortname() + ')';
 
                        } catch(E) {
                                var err_msg = "!! This software has encountered an error.  Please tell your friendly " +