Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Change button actions Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 03 October 2014 at 3:23am | IP Logged Quote andlis

I want to change actions, associated with "Spam" and "Not Spam" buttons. Exactly I want to copy letters to two folders, pushing these buttons. What is the best way to edit actions? Probably I need exact path to the place where these actions are described.
Thank you.
Back to Top View andlis's Profile Search for other posts by andlis
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 03 October 2014 at 4:05am | IP Logged Quote Igor

Developers suggest modifying the following methods in static/js/app.js file:

Code:
CMessageListViewModel.prototype.executeSpam = function ()


Code:
CMessageListViewModel.prototype.executeNotSpam = function ()


If you need to copy messages rather than move those, replace calls of moveMessagesToFolder function with copyMessagesToFolder.

Note that static/js/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,


Hope this helps!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 04 October 2014 at 6:04am | IP Logged Quote andlis

Thank you!
Back to Top View andlis's Profile Search for other posts by andlis
 

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