Author |
|
gfit Newbie
Joined: 21 September 2014
Online Status: Offline Posts: 17
|
Posted: 15 November 2014 at 9:45am | IP Logged
|
|
|
Afterlogic Webmail displays the selected user's email address on the header menu and on the message list webpage title. This could present a privacy issue in certain implementations.
Is there an option to specify a different menu title (e.g. 'mail') or, alternatively, can you point out where the relevant code can be found?
Thanks in advance.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 17 November 2014 at 3:39am | IP Logged
|
|
|
The code for building window title is found in static/js/app.js file, line ~41040:
Code:
switch (this.currentScreen())
{
case Enums.Screens.Login:
sTitle = Utils.i18n('TITLE/LOGIN', null, '');
break;
case Enums.Screens.Mailbox:
sTitle = AppData.Accounts.getEmail() + ' - ' + Utils.i18n('TITLE/MAILBOX');
break;
... |
|
|
and AppData.Accounts.getEmail() is responsible for putting email address in there, so you can replace that part with anything else.
Note that app.js file isn't used by default - its minified version app.min.js is used. To change that, add the following item to the array defined in data/settings/config.php file:
Code:
'labs.use-app-min-js' => false, |
|
|
Also, be sure to clear browser cache to apply changes.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
gfit Newbie
Joined: 21 September 2014
Online Status: Offline Posts: 17
|
Posted: 17 November 2014 at 7:43am | IP Logged
|
|
|
Thanks for your prompt reply. It has helped a lot.
Two more questions:
1) Which javascript compressor and/or encryption do you recommend for transferring the changes to app.min.js?
2) Is creating a plugin the recommended way to add static links to the top menu and/or settings tab? If not, where can the relevant code be found?
Thanks again for your help.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 November 2014 at 3:05am | IP Logged
|
|
|
Quote:
1) Which javascript compressor and/or encryption do you recommend for transferring the changes to app.min.js? |
|
|
I believe developers use UglifyJS for that purpose.
Quote:
2) Is creating a plugin the recommended way to add static links to the top menu and/or settings tab? |
|
|
Indeed, as that's the only way to have the changes preserved upon upgrading to a newer version.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|