| Author |  | 
      
        | mcoelho80 Newbie
 
  
 
 Joined: 03 April 2014
 Location: Brazil
 Online Status: Offline
 Posts: 28
 | 
          Hi!
           | Posted: 09 April 2014 at 3:35am | IP Logged |   |  
           | 
 |  
 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: 6168
 | 
          Good point, thanks. Developers confirmed the issue, the fix will be available in next product update.
           | Posted: 09 April 2014 at 4:23am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | mcoelho80 Newbie
 
  
 
 Joined: 03 April 2014
 Location: Brazil
 Online Status: Offline
 Posts: 28
 | 
          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.
           | Posted: 09 April 2014 at 8:10am | IP Logged |   |  
           | 
 |  
 Thank you.
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Sure, here it is:
           | Posted: 10 April 2014 at 2:24am | IP Logged |   |  
           | 
 |  
 
 
| 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
 | 
          I have the same problem here. Could you tell when will the bug be fixed?
           | Posted: 12 May 2014 at 10:36pm | IP Logged |   |  
           | 
 |  When will you release next version?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Version 7.3 was released over a week ago, so if you download the latest version the fix should be there already.
           | Posted: 13 May 2014 at 1:40am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |