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

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 12-24-2005, 10:02 AM
Active Member
 
Posts: 26
Default new button

How to add a button in menu emergent?
Reply With Quote
  #2 (permalink)  
Old 12-24-2005, 12:13 PM
Zimbra Employee
 
Posts: 4,792
Default

Can you give us some more context? Where are you trying to add a new button? What code are you working with? The Zimbra Mail App? Your own app and the Zimbra AjaxTk?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 12-25-2005, 07:23 AM
Active Member
 
Posts: 26
Default menu emergent of contacts

To insert the button in the Zimbra Mail, in the part of Contacts, menu emergent of contacts
Reply With Quote
  #4 (permalink)  
Old 12-25-2005, 08:02 AM
Zimbra Employee
 
Posts: 4,792
Default

If you want the button to show up in the right-click menu of all contacts then you'd add the new button here:

/ZimbraWebClient/WebRoot/js/zimbraMail/abook/controller/ZmContactListController.js

ZmListController.prototype._contactOps =
function() {
var list = new Array();
if (this._appCtxt.get(ZmSetting.SEARCH_ENABLED))
list.push(ZmOperation.SEARCH);
if (this._appCtxt.get(ZmSetting.BROWSE_ENABLED))
list.push(ZmOperation.BROWSE);
list.push(ZmOperation.NEW_MESSAGE);
if (this._appCtxt.get(ZmSetting.CONTACTS_ENABLED))
list.push(ZmOperation.CONTACT);
return list;
}

You'll need to add the ZmOperation first if it's a new operation.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 12-25-2005, 11:10 AM
Active Member
 
Posts: 26
Default Icon for ZmOperation

Where I place the direction of the icon for the ZmOperation? and Where I place the event of the button?

Last edited by rolando; 12-25-2005 at 02:03 PM..
Reply With Quote
  #6 (permalink)  
Old 12-25-2005, 02:23 PM
Active Member
 
Posts: 26
Default finished !!!

all this ok, I have solved it!!!!! je je je i'm happy !!!
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.