Hi all,
Here is a tip on how to set a custom title in the browser window/tab (i.e. where you´re app name is displayed. This fix, changes the app name to something else). I have tested it on the latest versions of Chrome, Firefox and IE and it works on all browsers.
Create file "appname.js" in folder "C:\AwareIM\Tomcat\webapps\AwareIM\aware_ext".
Add the following to the appname.js file where the document.title is your new app name:
function Func1()
{
document.title = "New app name";
}
function Func1Delay()
{
setTimeout("Func1()", 500);
}
Func1Delay()
Add the following without the brackets (;aware_ext/appname.js) AFTER the theme you are using in file "themes.props" in folder "C:\AwareIM\bin\" (this can be added to all themes I guess i.e. you can add it to the "Blue" theme if you want to or you can create your own theme (MyTheme) and add it to the "MyTheme" theme. Here is an example using "MyTheme":
ThemeMyTheme=MyTheme;ext-4.1.0/resources/css/ext-all.css;aware_ext/appname.js
Restart AwareIM server.
Reload your browser / log in to your application and now when your theme is loaded so is your custom title for that theme.
Notes:
The fix above works setting the page title after a delay (just using document.title doesn´t work because the newly set title gets changed back to the BS name title again so a delay is needed. Having the timeout as
500 (as above) seems to work and the delay is enough to work and enough so the user doesn't see the change (in some cases the user briefly sees the old title but it´s barely noticeable).
Additional info:
http://www.javascripter.net/faq/windowti.htm
http://stackoverflow.com/questions/413439/how-to-dynamically-change-a-web-pages-title
http://www.geekpedia.com/KB55_How-do-I-make-a-JavaScript-function-wait-before-executing-(sleep-or-delay).html
http://www.w3schools.com/jsref/met_win_settimeout.asp