Results 1 to 3 of 3

Thread: disable one of contextmenues

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    20
    Rep Power
    8

    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.

  2. #2
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    10

    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!

  3. #3
    Join Date
    Feb 2007
    Posts
    20
    Rep Power
    8

    Smile

    Thank you very much.

Similar Threads

  1. Disable Perdiditon
    By dogstar1 in forum Installation
    Replies: 5
    Last Post: 07-20-2007, 05:52 AM
  2. Disable Empty Trash?
    By jdanda in forum Users
    Replies: 2
    Last Post: 07-20-2007, 04:47 AM
  3. Who do I disable Junk/Not Junk for a single user?
    By djve in forum Administrators
    Replies: 2
    Last Post: 07-06-2007, 09:04 AM
  4. Disable Zimlets
    By crashxx in forum Administrators
    Replies: 4
    Last Post: 08-03-2006, 04:45 PM
  5. Can I disable attachment viewing from Outlook/How to?
    By chotima in forum Administrators
    Replies: 1
    Last Post: 01-27-2006, 12:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •