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
Родитель 8fbaffe7f2
Коммит 124a232863
4 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -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"

Просмотреть файл

@ -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)

Просмотреть файл

@ -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 ::::: */

Просмотреть файл