Bug 1703164 - convert mail/components/addrbook/content/abMailListDialog.xhtml to top level <html>. r=aleca
Address book | (create new list) and (edit list) Differential Revision: https://phabricator.services.mozilla.com/D194860 --HG-- extra : rebase_source : a49df8573ee464f0238780fafd78bb98ef5d8f84 extra : amend_source : 89288534b7de74fcaced51b98fecd2ec8e17496f
This commit is contained in:
Родитель
e015b191f6
Коммит
b4106035aa
|
@ -3,120 +3,134 @@
|
|||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://messenger/locale/addressbook/abMailListDialog.dtd">
|
||||
<window
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
<!DOCTYPE html SYSTEM "chrome://messenger/locale/addressbook/abMailListDialog.dtd">
|
||||
<html
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
title="&mailListWindowAdd.title;"
|
||||
onload="onAbListDialogLoad();"
|
||||
ondragover="DragOverAddressListTree(event);"
|
||||
ondrop="DropOnAddressListTree(event);"
|
||||
scrolling="false"
|
||||
>
|
||||
<html:link
|
||||
rel="stylesheet"
|
||||
href="chrome://messenger/skin/addressbook/cardDialog.css"
|
||||
/>
|
||||
<html:link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
|
||||
<html:link
|
||||
rel="stylesheet"
|
||||
href="chrome://messenger/skin/shared/grid-layout.css"
|
||||
/>
|
||||
|
||||
<dialog id="ablistWindow">
|
||||
<script src="chrome://messenger/content/globalOverlay.js" />
|
||||
<script src="chrome://global/content/editMenuOverlay.js" />
|
||||
<!-- move needed functions into a single js file -->
|
||||
<script src="chrome://messenger/content/addressbook/abCommon.js" />
|
||||
<script src="chrome://messenger/content/addressbook/abMailListDialog.js" />
|
||||
|
||||
<vbox id="abListSelector">
|
||||
<hbox align="center">
|
||||
<label
|
||||
control="abPopup"
|
||||
value="&addToAddressBook.label;"
|
||||
accesskey="&addToAddressBook.accesskey;"
|
||||
/>
|
||||
<menulist
|
||||
is="menulist-addrbooks"
|
||||
id="abPopup"
|
||||
supportsmaillists="true"
|
||||
flex="1"
|
||||
writable="true"
|
||||
/>
|
||||
</hbox>
|
||||
|
||||
<spacer style="height: 1em" />
|
||||
</vbox>
|
||||
|
||||
<vbox id="editlist">
|
||||
<html:div class="grid-two-column-fr grid-items-center">
|
||||
<label
|
||||
control="ListName"
|
||||
value="&ListName.label;"
|
||||
accesskey="&ListName.accesskey;"
|
||||
class="CardEditLabel"
|
||||
/>
|
||||
<hbox class="CardEditWidth input-container">
|
||||
<html:input id="ListName" type="text" class="input-inline" />
|
||||
</hbox>
|
||||
<label
|
||||
control="ListNickName"
|
||||
value="&ListNickName.label;"
|
||||
accesskey="&ListNickName.accesskey;"
|
||||
class="CardEditLabel"
|
||||
/>
|
||||
<hbox class="CardEditWidth input-container">
|
||||
<html:input id="ListNickName" type="text" class="input-inline" />
|
||||
</hbox>
|
||||
<label
|
||||
control="ListDescription"
|
||||
value="&ListDescription.label;"
|
||||
accesskey="&ListDescription.accesskey;"
|
||||
class="CardEditLabel"
|
||||
/>
|
||||
<hbox class="CardEditWidth input-container">
|
||||
<html:input id="ListDescription" type="text" class="input-inline" />
|
||||
</hbox>
|
||||
</html:div>
|
||||
|
||||
<spacer style="height: 1em" />
|
||||
<label
|
||||
control="addressCol1#1"
|
||||
value="&AddressTitle.label;"
|
||||
accesskey="&AddressTitle.accesskey;"
|
||||
/>
|
||||
<spacer style="height: 0.1em" />
|
||||
|
||||
<richlistbox
|
||||
id="addressingWidget"
|
||||
onclick="awClickEmptySpace(event.target, true)"
|
||||
>
|
||||
<richlistitem class="addressingWidgetItem" allowevents="true">
|
||||
<hbox
|
||||
class="addressingWidgetCell input-container"
|
||||
<head>
|
||||
<title>&mailListWindowAdd.title;</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://messenger/skin/addressbook/cardDialog.css"
|
||||
/>
|
||||
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="chrome://messenger/skin/shared/grid-layout.css"
|
||||
/>
|
||||
<link rel="localization" href="branding/brand.ftl" />
|
||||
<script
|
||||
defer="defer"
|
||||
src="chrome://messenger/content/globalOverlay.js"
|
||||
></script>
|
||||
<script
|
||||
defer="defer"
|
||||
src="chrome://global/content/editMenuOverlay.js"
|
||||
></script>
|
||||
<script
|
||||
defer="defer"
|
||||
src="chrome://messenger/content/addressbook/abCommon.js"
|
||||
></script>
|
||||
<script
|
||||
defer="defer"
|
||||
src="chrome://messenger/content/addressbook/abMailListDialog.js"
|
||||
></script>
|
||||
</head>
|
||||
<html:body
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
>
|
||||
<dialog id="ablistWindow">
|
||||
<vbox id="abListSelector">
|
||||
<hbox align="center">
|
||||
<label
|
||||
control="abPopup"
|
||||
value="&addToAddressBook.label;"
|
||||
accesskey="&addToAddressBook.accesskey;"
|
||||
/>
|
||||
<menulist
|
||||
is="menulist-addrbooks"
|
||||
id="abPopup"
|
||||
supportsmaillists="true"
|
||||
flex="1"
|
||||
role="combobox"
|
||||
>
|
||||
<html:label for="addressCol1#1" class="person-icon"></html:label>
|
||||
<html:input
|
||||
is="autocomplete-input"
|
||||
id="addressCol1#1"
|
||||
class="plain textbox-addressingWidget uri-element"
|
||||
aria-labelledby="addressCol1#1"
|
||||
autocompletesearch="addrbook ldap"
|
||||
autocompletesearchparam="{}"
|
||||
timeout="300"
|
||||
maxrows="4"
|
||||
completedefaultindex="true"
|
||||
forcecomplete="true"
|
||||
completeselectedindex="true"
|
||||
minresultsforpopup="3"
|
||||
onkeypress="awAbRecipientKeyPress(event, this);"
|
||||
onkeydown="awRecipientKeyDown(event, this);"
|
||||
/>
|
||||
writable="true"
|
||||
/>
|
||||
</hbox>
|
||||
<spacer style="height: 1em" />
|
||||
</vbox>
|
||||
|
||||
<vbox id="editlist">
|
||||
<html:div class="grid-two-column-fr grid-items-center">
|
||||
<label
|
||||
control="ListName"
|
||||
value="&ListName.label;"
|
||||
accesskey="&ListName.accesskey;"
|
||||
class="CardEditLabel"
|
||||
/>
|
||||
<hbox class="CardEditWidth input-container">
|
||||
<html:input id="ListName" type="text" class="input-inline" />
|
||||
</hbox>
|
||||
</richlistitem>
|
||||
</richlistbox>
|
||||
</vbox>
|
||||
</dialog>
|
||||
</window>
|
||||
<label
|
||||
control="ListNickName"
|
||||
value="&ListNickName.label;"
|
||||
accesskey="&ListNickName.accesskey;"
|
||||
class="CardEditLabel"
|
||||
/>
|
||||
<hbox class="CardEditWidth input-container">
|
||||
<html:input id="ListNickName" type="text" class="input-inline" />
|
||||
</hbox>
|
||||
<label
|
||||
control="ListDescription"
|
||||
value="&ListDescription.label;"
|
||||
accesskey="&ListDescription.accesskey;"
|
||||
class="CardEditLabel"
|
||||
/>
|
||||
<hbox class="CardEditWidth input-container">
|
||||
<html:input id="ListDescription" type="text" class="input-inline" />
|
||||
</hbox>
|
||||
</html:div>
|
||||
|
||||
<spacer style="height: 1em" />
|
||||
<label
|
||||
control="addressCol1#1"
|
||||
value="&AddressTitle.label;"
|
||||
accesskey="&AddressTitle.accesskey;"
|
||||
/>
|
||||
<spacer style="height: 0.1em" />
|
||||
|
||||
<richlistbox
|
||||
id="addressingWidget"
|
||||
onclick="awClickEmptySpace(event.target, true)"
|
||||
>
|
||||
<richlistitem class="addressingWidgetItem" allowevents="true">
|
||||
<hbox
|
||||
class="addressingWidgetCell input-container"
|
||||
flex="1"
|
||||
role="combobox"
|
||||
>
|
||||
<html:label for="addressCol1#1" class="person-icon"></html:label>
|
||||
<html:input
|
||||
is="autocomplete-input"
|
||||
id="addressCol1#1"
|
||||
class="plain textbox-addressingWidget uri-element"
|
||||
aria-labelledby="addressCol1#1"
|
||||
autocompletesearch="addrbook ldap"
|
||||
autocompletesearchparam="{}"
|
||||
timeout="300"
|
||||
maxrows="4"
|
||||
completedefaultindex="true"
|
||||
forcecomplete="true"
|
||||
completeselectedindex="true"
|
||||
minresultsforpopup="3"
|
||||
onkeypress="awAbRecipientKeyPress(event, this);"
|
||||
onkeydown="awRecipientKeyDown(event, this);"
|
||||
/>
|
||||
</hbox>
|
||||
</richlistitem>
|
||||
</richlistbox>
|
||||
</vbox>
|
||||
</dialog>
|
||||
</html:body>
|
||||
</html>
|
||||
|
|
|
@ -22,6 +22,10 @@ var gAWContentHeight = 0;
|
|||
var gAWRowHeight = 0;
|
||||
var gNumberOfCols = 0;
|
||||
|
||||
window.addEventListener("load", onAbListDialogLoad);
|
||||
window.addEventListener("dragover", DragOverAddressListTree);
|
||||
window.addEventListener("drop", DropOnAddressListTree);
|
||||
|
||||
function onAbListDialogLoad() {
|
||||
if (window.arguments[0].listURI) {
|
||||
document.getElementById("abListSelector").hidden = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче