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
|
- 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/. -->
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
|
|
||||||
<!DOCTYPE window SYSTEM "chrome://messenger/locale/addressbook/abMailListDialog.dtd">
|
<!DOCTYPE html SYSTEM "chrome://messenger/locale/addressbook/abMailListDialog.dtd">
|
||||||
<window
|
<html
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
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"
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
title="&mailListWindowAdd.title;"
|
scrolling="false"
|
||||||
onload="onAbListDialogLoad();"
|
|
||||||
ondragover="DragOverAddressListTree(event);"
|
|
||||||
ondrop="DropOnAddressListTree(event);"
|
|
||||||
>
|
>
|
||||||
<html:link
|
<head>
|
||||||
rel="stylesheet"
|
<title>&mailListWindowAdd.title;</title>
|
||||||
href="chrome://messenger/skin/addressbook/cardDialog.css"
|
<link
|
||||||
/>
|
rel="stylesheet"
|
||||||
<html:link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
|
href="chrome://messenger/skin/addressbook/cardDialog.css"
|
||||||
<html:link
|
/>
|
||||||
rel="stylesheet"
|
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
|
||||||
href="chrome://messenger/skin/shared/grid-layout.css"
|
<link
|
||||||
/>
|
rel="stylesheet"
|
||||||
|
href="chrome://messenger/skin/shared/grid-layout.css"
|
||||||
<dialog id="ablistWindow">
|
/>
|
||||||
<script src="chrome://messenger/content/globalOverlay.js" />
|
<link rel="localization" href="branding/brand.ftl" />
|
||||||
<script src="chrome://global/content/editMenuOverlay.js" />
|
<script
|
||||||
<!-- move needed functions into a single js file -->
|
defer="defer"
|
||||||
<script src="chrome://messenger/content/addressbook/abCommon.js" />
|
src="chrome://messenger/content/globalOverlay.js"
|
||||||
<script src="chrome://messenger/content/addressbook/abMailListDialog.js" />
|
></script>
|
||||||
|
<script
|
||||||
<vbox id="abListSelector">
|
defer="defer"
|
||||||
<hbox align="center">
|
src="chrome://global/content/editMenuOverlay.js"
|
||||||
<label
|
></script>
|
||||||
control="abPopup"
|
<script
|
||||||
value="&addToAddressBook.label;"
|
defer="defer"
|
||||||
accesskey="&addToAddressBook.accesskey;"
|
src="chrome://messenger/content/addressbook/abCommon.js"
|
||||||
/>
|
></script>
|
||||||
<menulist
|
<script
|
||||||
is="menulist-addrbooks"
|
defer="defer"
|
||||||
id="abPopup"
|
src="chrome://messenger/content/addressbook/abMailListDialog.js"
|
||||||
supportsmaillists="true"
|
></script>
|
||||||
flex="1"
|
</head>
|
||||||
writable="true"
|
<html:body
|
||||||
/>
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
</hbox>
|
>
|
||||||
|
<dialog id="ablistWindow">
|
||||||
<spacer style="height: 1em" />
|
<vbox id="abListSelector">
|
||||||
</vbox>
|
<hbox align="center">
|
||||||
|
<label
|
||||||
<vbox id="editlist">
|
control="abPopup"
|
||||||
<html:div class="grid-two-column-fr grid-items-center">
|
value="&addToAddressBook.label;"
|
||||||
<label
|
accesskey="&addToAddressBook.accesskey;"
|
||||||
control="ListName"
|
/>
|
||||||
value="&ListName.label;"
|
<menulist
|
||||||
accesskey="&ListName.accesskey;"
|
is="menulist-addrbooks"
|
||||||
class="CardEditLabel"
|
id="abPopup"
|
||||||
/>
|
supportsmaillists="true"
|
||||||
<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"
|
|
||||||
flex="1"
|
flex="1"
|
||||||
role="combobox"
|
writable="true"
|
||||||
>
|
/>
|
||||||
<html:label for="addressCol1#1" class="person-icon"></html:label>
|
</hbox>
|
||||||
<html:input
|
<spacer style="height: 1em" />
|
||||||
is="autocomplete-input"
|
</vbox>
|
||||||
id="addressCol1#1"
|
|
||||||
class="plain textbox-addressingWidget uri-element"
|
<vbox id="editlist">
|
||||||
aria-labelledby="addressCol1#1"
|
<html:div class="grid-two-column-fr grid-items-center">
|
||||||
autocompletesearch="addrbook ldap"
|
<label
|
||||||
autocompletesearchparam="{}"
|
control="ListName"
|
||||||
timeout="300"
|
value="&ListName.label;"
|
||||||
maxrows="4"
|
accesskey="&ListName.accesskey;"
|
||||||
completedefaultindex="true"
|
class="CardEditLabel"
|
||||||
forcecomplete="true"
|
/>
|
||||||
completeselectedindex="true"
|
<hbox class="CardEditWidth input-container">
|
||||||
minresultsforpopup="3"
|
<html:input id="ListName" type="text" class="input-inline" />
|
||||||
onkeypress="awAbRecipientKeyPress(event, this);"
|
|
||||||
onkeydown="awRecipientKeyDown(event, this);"
|
|
||||||
/>
|
|
||||||
</hbox>
|
</hbox>
|
||||||
</richlistitem>
|
<label
|
||||||
</richlistbox>
|
control="ListNickName"
|
||||||
</vbox>
|
value="&ListNickName.label;"
|
||||||
</dialog>
|
accesskey="&ListNickName.accesskey;"
|
||||||
</window>
|
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 gAWRowHeight = 0;
|
||||||
var gNumberOfCols = 0;
|
var gNumberOfCols = 0;
|
||||||
|
|
||||||
|
window.addEventListener("load", onAbListDialogLoad);
|
||||||
|
window.addEventListener("dragover", DragOverAddressListTree);
|
||||||
|
window.addEventListener("drop", DropOnAddressListTree);
|
||||||
|
|
||||||
function onAbListDialogLoad() {
|
function onAbListDialogLoad() {
|
||||||
if (window.arguments[0].listURI) {
|
if (window.arguments[0].listURI) {
|
||||||
document.getElementById("abListSelector").hidden = true;
|
document.getElementById("abListSelector").hidden = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче