Results 1 to 2 of 2

Thread: override display of attachments?

  1. #1
    sdouglass is offline Intermediate Member
    Join Date
    Oct 2005
    Location
    Emeryville, CA US
    Posts
    22
    Rep Power
    9

    Default override display of attachments?

    I would like to override the default way that attachments are rendered. The code appears to be in ZmMailMsgView.prototype._getAttachmentHtml. I think I have to work on the ZmMailMsgView instance, though, not the prototype, right? I know how to get to the ZmMailMsgView instance, so I tried this but it didn't appear to do anything:

    var msgView = ...; // get the instance here
    msgView._oldGetAttachmentHtml = msgView._getAttachmentHtml;
    msgView._getAttachmentHtml = function(msg, htmlArr, idx) {
    alert('idx == ' + idx);
    return msgView._oldGetAttachmentHtml(msg, htmlArr, idx);
    }

    I put that code in an init() of a Zimlet but when I view a message that has attachments I don't see the alert I expect. Does anyone have any info on how to do something like this?

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    Which version of the code are you looking at? I'm looking at 4.0 and I think the method you want is called: ZmMailMsgView.prototype._setAttachmentLinks
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Attachments Getting Munged
    By taliskar in forum Administrators
    Replies: 36
    Last Post: 09-02-2010, 09:05 AM
  2. Removing display name from sent mail
    By Irazmus in forum Zimbra in Education
    Replies: 2
    Last Post: 05-02-2007, 02:56 AM
  3. Inline attachments won't display in web UI
    By feralcoder in forum Users
    Replies: 2
    Last Post: 03-31-2007, 11:01 AM
  4. Drag email to calendar and attachments
    By Richard in forum Users
    Replies: 2
    Last Post: 09-14-2006, 12:09 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
  •