Author |
|
andlis Newbie
Joined: 16 October 2013
Online Status: Offline Posts: 29
|
Posted: 03 October 2014 at 3:23am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 03 October 2014 at 4:05am | IP Logged
|
|
|
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 |
|
|
andlis Newbie
Joined: 16 October 2013
Online Status: Offline Posts: 29
|
Posted: 04 October 2014 at 6:04am | IP Logged
|
|
|
Thank you!
|
Back to Top |
|
|