зеркало из https://github.com/mozilla/pjs.git
More mailing list dialog stuff, r=putterman
This commit is contained in:
Родитель
6bb6dd0b3a
Коммит
4b7f4b5aba
|
@ -36,3 +36,5 @@ abSelectAddressesDialog.xul
|
|||
addressbook.js
|
||||
addressbook.xul
|
||||
abDragDrop.js
|
||||
abMailListDialog.js
|
||||
abMailListDialog.xul
|
||||
|
|
|
@ -45,6 +45,8 @@ EXPORT_RESOURCE_SAMPLES = \
|
|||
addressbook.js \
|
||||
addressbook.xul \
|
||||
abDragDrop.js \
|
||||
abMailListDialog.js \
|
||||
abMailListDialog.xul \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -518,3 +518,16 @@ function UpdateSortIndicator(column,sortDirection)
|
|||
}
|
||||
}
|
||||
|
||||
function AbNewList()
|
||||
{
|
||||
return;
|
||||
var selectedAB = 0;
|
||||
if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) )
|
||||
selectedAB = dirTree.selectedItems[0].getAttribute('id');
|
||||
|
||||
window.openDialog("chrome://messenger/content/addressbook/abMailListDialog.xul",
|
||||
"",
|
||||
"chrome,resizeable=no",
|
||||
{selectedAB:selectedAB});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
* Contributor(s):
|
||||
*/
|
||||
|
||||
top.MAX_RECIPIENTS = 0;
|
||||
top.MAX_RECIPIENTS = 1;
|
||||
var inputElementType = "";
|
||||
var strBundle = srGetStrBundle("chrome://messenger/locale/addressBook.properties");
|
||||
|
||||
function MailListOKButton()
|
||||
{
|
||||
|
@ -42,7 +43,11 @@ function MailListOKButton()
|
|||
mailList.listName = document.getElementById('ListName').value;
|
||||
|
||||
if (mailList.listName.length == 0)
|
||||
{
|
||||
var alertText = strBundle.GetStringFromName("emptyListName");
|
||||
alert(alertText);
|
||||
return false;
|
||||
}
|
||||
|
||||
mailList.listNickName = document.getElementById('ListNickName').value;
|
||||
mailList.description = document.getElementById('ListDescription').value;
|
||||
|
@ -176,7 +181,6 @@ function awInputElementName()
|
|||
|
||||
function awAppendNewRow(setFocus)
|
||||
{
|
||||
dump("-----awAppendNewRow\n");
|
||||
var body = document.getElementById('addressList');
|
||||
var treeitem1 = awGetTreeItem(1);
|
||||
|
||||
|
@ -188,7 +192,6 @@ dump("-----awAppendNewRow\n");
|
|||
var input = newNode.getElementsByTagName(awInputElementName());
|
||||
if ( input && input.length == 1 )
|
||||
{
|
||||
dump("-----awAppendNewRow 1\n");
|
||||
input[0].setAttribute("value", "");
|
||||
input[0].setAttribute("id", "address#" + top.MAX_RECIPIENTS);
|
||||
}
|
||||
|
@ -296,6 +299,8 @@ function awRemoveNodeAndChildren(parent, nodeToRemove)
|
|||
|
||||
function awSetFocus(row, inputElement)
|
||||
{
|
||||
return;
|
||||
|
||||
top.awRow = row;
|
||||
top.awInputElement = inputElement;
|
||||
top.awFocusRetry = 0;
|
||||
|
@ -304,12 +309,12 @@ function awSetFocus(row, inputElement)
|
|||
|
||||
function _awSetFocus()
|
||||
{
|
||||
var tree = document.getElementById('addressingWidgetTree');
|
||||
var tree = document.getElementById('addressListTree');
|
||||
try
|
||||
{
|
||||
theNewRow = awGetTreeRow(top.awRow);
|
||||
//temporary patch for bug 26344
|
||||
awFinishCopyNode(theNewRow);
|
||||
// awFinishCopyNode(theNewRow);
|
||||
|
||||
tree.ensureElementIsVisible(theNewRow);
|
||||
top.awInputElement.focus();
|
||||
|
|
|
@ -40,19 +40,6 @@ Rights Reserved.
|
|||
<keyset id="keyset"/>
|
||||
|
||||
<box orient="horizontal" autostretch="never" valign="center">
|
||||
<!--html:label for="abPopup">&addToAddressBook.label;</html:label>
|
||||
<html:div>
|
||||
<html:select id="abPopup" ref="abdirectory://" datasources="rdf:addressdirectory">
|
||||
<template>
|
||||
<html:option uri="..." value="rdf:http://home.netscape.com/NC-rdf#DirUri">
|
||||
<text value="rdf:http://home.netscape.com/NC-rdf#DirName"/>
|
||||
</html:option>
|
||||
</template>
|
||||
</html:select>
|
||||
</html:div-->
|
||||
|
||||
|
||||
|
||||
<text for="abPopup" value="&addToAddressBook.label;"/>
|
||||
<menulist id="abPopup">
|
||||
<menupopup id="abPopup-menupopup" ref="abdirectory://" datasources="rdf:addressdirectory">
|
||||
|
@ -110,6 +97,9 @@ Rights Reserved.
|
|||
flex="100%"
|
||||
onkeydown="if (event.which == 9) awReturnHit(this);"
|
||||
onclick="awNotAnEmptyArea(event);"
|
||||
autocomplete="true"
|
||||
timeout="300"
|
||||
searchSessionType="addrbook"
|
||||
/>
|
||||
</treecell>
|
||||
</treerow>
|
||||
|
@ -120,11 +110,11 @@ Rights Reserved.
|
|||
<spring style="width:1em"/>
|
||||
<box orient="vertical" flex="20%">
|
||||
<spring style="height:30px"/>
|
||||
<titledbutton id="button_remove" value="&RemoveButton.label;" />
|
||||
<button id="button_remove" disabled="true" value="&RemoveButton.label;" />
|
||||
<spring style="height:40px"/>
|
||||
<titledbutton id="button_up" value="&UpButton.label;" />
|
||||
<button id="button_up" disabled="true" value="&UpButton.label;" />
|
||||
<spring style="height:10px"/>
|
||||
<titledbutton id="button_down" value="&DownButton.label;"/>
|
||||
<button id="button_down" disabled="true" value="&DownButton.label;"/>
|
||||
</box>
|
||||
</box>
|
||||
<spring style="height:1em"/>
|
||||
|
|
|
@ -40,6 +40,8 @@ install::
|
|||
$(MAKE_INSTALL) addressbook.js $(DIST)\bin\chrome\messenger\content\addressbook
|
||||
$(MAKE_INSTALL) addressbook.xul $(DIST)\bin\chrome\messenger\content\addressbook
|
||||
$(MAKE_INSTALL) abDragDrop.js $(DIST)\bin\chrome\messenger\content\addressbook
|
||||
$(MAKE_INSTALL) abMailListDialog.xul $(DIST)\bin\chrome\messenger\content\addressbook
|
||||
$(MAKE_INSTALL) abMailListDialog.js $(DIST)\bin\chrome\messenger\content\addressbook
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\chrome\messenger\content\addressbook\abAddressBookNameDialog.js
|
||||
|
@ -58,6 +60,8 @@ clobber::
|
|||
rm -f $(DIST)\chrome\messenger\content\addressbook\addressbook.js
|
||||
rm -f $(DIST)\chrome\messenger\content\addressbook\addressbook.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\addressbook\abDragDrop.js
|
||||
rm -f $(DIST)\chrome\messenger\content\addressbook\abMailListDialog.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\addressbook\abMailListDialog.js
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,3 +6,5 @@ abMainWindow.dtd
|
|||
abNewCardDialog.dtd
|
||||
abResultsTreeOverlay.dtd
|
||||
abSelectAddressesDialog.dtd
|
||||
abMailListDialog.dtd
|
||||
addressBook.properties
|
||||
|
|
|
@ -35,6 +35,8 @@ EXPORT_RESOURCE_CONTENT = \
|
|||
$(srcdir)/abNewCardDialog.dtd \
|
||||
$(srcdir)/abResultsTreeOverlay.dtd \
|
||||
$(srcdir)/abSelectAddressesDialog.dtd \
|
||||
$(srcdir)/abMailListDialog.dtd \
|
||||
$(srcdir)/addressBook.properties \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -35,6 +35,8 @@ install::
|
|||
$(MAKE_INSTALL) abNewCardDialog.dtd $(DISTBROWSER)
|
||||
$(MAKE_INSTALL) abResultsTreeOverlay.dtd $(DISTBROWSER)
|
||||
$(MAKE_INSTALL) abSelectAddressesDialog.dtd $(DISTBROWSER)
|
||||
$(MAKE_INSTALL) abMailListDialog.dtd $(DISTBROWSER)
|
||||
$(MAKE_INSTALL) addressBook.properties $(DISTBROWSER)
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\chrome\messenger\locale\addressbook\abAddressBookNameDialog.dtd
|
||||
|
@ -45,3 +47,5 @@ clobber::
|
|||
rm -f $(DIST)\bin\chrome\messenger\locale\addressbook\abNewCardDialog.dtd
|
||||
rm -f $(DIST)\bin\chrome\messenger\locale\addressbook\abResultsTreeOverlay.dtd
|
||||
rm -f $(DIST)\bin\chrome\messenger\locale\addressbook\abSelectAddressesDialog.dtd
|
||||
rm -f $(DIST)\bin\chrome\messenger\locale\addressbook\abMailListDialog.dtd
|
||||
rm -f $(DIST)\bin\chrome\messenger\locale\addressbook\addressBook.properties
|
||||
|
|
Загрузка…
Ссылка в новой задаче