Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: after message deletion Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
willam
Newbie
Newbie


Joined: 04 November 2009
Online Status: Offline
Posts: 14
Posted: 23 August 2010 at 10:56am | IP Logged Quote willam

Hi,

When a message is displayed (not just in preview) and gets deleted, is it possible to configure webmail to return to the message list rather than display the next message?
Thanks.

Best,
Gabor
Back to Top View willam's Profile Search for other posts by willam
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 August 2010 at 3:50am | IP Logged Quote Igor

This can be achieved with a really simple modification of the code. Check js/mail/view-message-screen.js file, line 145:

Code:
case TYPE_MESSAGES_OPERATION:
  if (Data && Data.GetMessageAfterDelete) {
    this.GetNextMessage(true);
  }
  /*
  SetHistoryHandler(
    {
      ScreenId: WebMail.ListScreenId
    }
  );
  */
break;


It should be modified as follows:

Code:
case TYPE_MESSAGES_OPERATION:
  /*
  if (Data && Data.GetMessageAfterDelete) {
    this.GetNextMessage(true);
  }
  */
  SetHistoryHandler(
    {
      ScreenId: WebMail.ListScreenId
    }
  );
break;


Be sure to clear web browser cache to apply changes.

--
Regards,
Igor, AfterLogic Support

Back to Top View Igor's Profile Search for other posts by Igor
 
willam
Newbie
Newbie


Joined: 04 November 2009
Online Status: Offline
Posts: 14
Posted: 24 August 2010 at 10:13am | IP Logged Quote willam

Works like a charm, thank you.
Back to Top View willam's Profile Search for other posts by willam
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide