Add a context menu to the contact panel for deleting and editing cards.

Fork tools icon (patch from stephen walker)
This commit is contained in:
scott%scott-macgregor.org 2003-06-27 00:55:01 +00:00
parent 14840b8d34
commit 6b5cd47b7f
4 changed files with 11 additions and 5 deletions

View File

@ -54,7 +54,12 @@
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abResultsPane.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abSelectAddressesDialog.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abContactsPanel.js"/>
<popup id="cardProperties">
<menuitem label="&deleteAddrBookCard.label;" accesskey="&deleteAddrBookCard.accesskey;" oncommand="AbDelete();"/>
<menuitem label="&addrBookCardProperties.label;" accesskey="&addrBookCardProperties.accesskey;" oncommand="AbEditSelectedCard();"/>
</popup>
<vbox id="results_box" flex="1">
<separator class="thin"/>
<label value="&addressbookPicker.label;"/>
@ -88,7 +93,7 @@
<separator class="thin"/>
<tree id="abResultsTree" flex="1" class="plain" sortCol="GeneratedName" persist="sortCol" ondblclick="addSelectedAddresses('addr_to')">
<tree id="abResultsTree" flex="1" context="cardProperties" class="plain" sortCol="GeneratedName" persist="sortCol" ondblclick="addSelectedAddresses('addr_to')">
<treecols>
<!-- these column ids must match up to the mork column names, see nsIAddrDatabase.idl -->
<treecol id="GeneratedName" class="sortDirectionIndicator"

View File

@ -2,10 +2,11 @@ classic.jar:
+ skin/classic/messenger/addressbook/addressbook.css (skin/addressbook.css)
+ skin/classic/messenger/addressbook/abContactsPanel.css (skin/abContactsPanel.css)
+ skin/classic/messenger/addressbook/cardDialog.css (skin/cardDialog.css)
skin/classic/messenger/addressbook/icons/addressbook-16.gif (skin/icons/addressbook-16.gif)
messenger.jar:
*+ content/messenger/addressbook/abCardViewOverlay.js (content/abCardViewOverlay.js)
*+ content/messenger/addressbook/addressbook.js (content/addressbook.js)
*+ content/messenger/addressbook/abCardViewOverlay.js (content/abCardViewOverlay.js)
*+ content/messenger/addressbook/addressbook.js (content/addressbook.js)
*+ content/messenger/addressbook/addressbook.xul (content/addressbook.xul)
*+ content/messenger/addressbook/abCardOverlay.js (content/abCardOverlay.js)
+ content/messenger/addressbook/abAddressBookNameDialog.js (content/abAddressBookNameDialog.js)

View File

@ -32,7 +32,7 @@
/* ::::: tools menu icon ::::: */
.icon-mail16 {
list-style-image: url("chrome://communicator/skin/taskbar/mail-16.gif");
list-style-image: url("chrome://messenger/skin/icons/mail-16.gif");
}
/* ::::: primary toolbar buttons ::::: */

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B