From 0ed0b032403d3e78a7282f6b4b31f539a5abc129 Mon Sep 17 00:00:00 2001 From: pines Date: Sun, 12 Mar 2006 19:55:52 +0000 Subject: [PATCH] workstation name in titlebar 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 | 1 + Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/auth/session.js b/Open-ILS/xul/staff_client/chrome/content/auth/session.js index 4e8a84f540..bfeea6236c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/auth/session.js +++ b/Open-ILS/xul/staff_client/chrome/content/auth/session.js @@ -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( diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul index 6bbab7250a..79365abb5f 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul @@ -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 " + -- 2.43.2