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:
Magnus Melin 2023-12-03 12:47:05 +02:00
Родитель e015b191f6
Коммит b4106035aa
2 изменённых файлов: 131 добавлений и 113 удалений

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

@ -3,32 +3,46 @@
- 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
<head>
<title>&mailListWindowAdd.title;</title>
<link
rel="stylesheet"
href="chrome://messenger/skin/addressbook/cardDialog.css"
/>
<html:link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<html:link
<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">
<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
@ -44,7 +58,6 @@
writable="true"
/>
</hbox>
<spacer style="height: 1em" />
</vbox>
@ -119,4 +132,5 @@
</richlistbox>
</vbox>
</dialog>
</window>
</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;