Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-2007, 02:37 AM
Intermediate Member
 
Posts: 20
Default disable one of contextmenues

There is a file "email.js" in a zimlet "com_zimbra_email".
By this zimlet when a E-mail address is rightclicked, contextmenu is displayed.
Can I disable one of these menues?
I want to disable, not to remove.
Reply With Quote
  #2 (permalink)  
Old 04-12-2007, 10:43 AM
Zimbra Employee
 
Posts: 269
Default

Yes you can!

Here's an example:

In email.js, look for the "getActionMenu" method. After getting a reference to the actionMenu, you can add something like this:
Code:
actionMenu.getOp("NEWCONTACT").setEnabled(false)
Of course, if you may need to wrap this in some kind of "if" logic unless you always want it disabled?

HTH.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 04-12-2007, 05:48 PM
Intermediate Member
 
Posts: 20
Smile

Thank you very much.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.