Author |
|
mcoelho80 Newbie
Joined: 03 April 2014 Location: Brazil
Online Status: Offline Posts: 28
|
Posted: 09 April 2014 at 3:35am | IP Logged
|
|
|
Hi!
I think your plugin Example #1 isn't working
http://www.afterlogic.com/wiki/JavaScript_API_(WebMail)
I coudn't add a tab with this:
AfterLogicApi.addSettingsTab(CCustomSettings);
I managed to make it work modifying the include.js code to this:
Enums.SettingsTab[CCustomSettings.prototype.TabName] = CCustomSettings.prototype.TabName;
AfterLogicApi.aSettingsTabs.push(CCustomSettings);
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 09 April 2014 at 4:23am | IP Logged
|
|
|
Good point, thanks. Developers confirmed the issue, the fix will be available in next product update.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
mcoelho80 Newbie
Joined: 03 April 2014 Location: Brazil
Online Status: Offline Posts: 28
|
Posted: 09 April 2014 at 8:10am | IP Logged
|
|
|
If possible, please publish the new AfterLogicApi.addSettingsTab code here, so I can update my codebase and make my plugin compatible with the future updates.
Thank you.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 April 2014 at 2:24am | IP Logged
|
|
|
Sure, here it is:
Code:
/**
* @param {Object} oViewModelClass
*/
AfterLogicApi.addSettingsTab = function (oViewModelClass)
{
if (oViewModelClass.prototype.TabName)
{
Enums.SettingsTab[oViewModelClass.prototype.TabName] = oViewModelClass.prototype.TabName;
AfterLogicApi.aSettingsTabs.push(oViewModelClass);
}
}; |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
whuhacker Newbie
Joined: 12 May 2014 Location: Hong Kong
Online Status: Offline Posts: 10
|
Posted: 12 May 2014 at 10:36pm | IP Logged
|
|
|
I have the same problem here. Could you tell when will the bug be fixed?
When will you release next version?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 13 May 2014 at 1:40am | IP Logged
|
|
|
Version 7.3 was released over a week ago, so if you download the latest version the fix should be there already.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|