toolkit/components/alerts/resources/content/alert.xul

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:a8dcf3ef6ace
1 <?xml version="1.0"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5
6 <!DOCTYPE window [
7 <!ENTITY % alertDTD SYSTEM "chrome://alerts/locale/alert.dtd">
8 %alertDTD;
9 ]>
10
11 <?xml-stylesheet href="chrome://global/content/alerts/alert.css" type="text/css"?>
12 <?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>
13
14 <window id="alertNotification"
15 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
16 windowtype="alert:alert"
17 xmlns:xhtml="http://www.w3.org/1999/xhtml"
18 xhtml:role="alert"
19 pack="start"
20 onload="onAlertLoad();"
21 onclick="onAlertClick();"
22 onbeforeunload="onAlertBeforeUnload();">
23
24 <script type="application/javascript" src="chrome://global/content/alerts/alert.js"/>
25
26 <box id="alertBox" class="alertBox">
27 <box>
28 <hbox id="alertImageBox" class="alertImageBox" align="center" pack="center">
29 <image id="alertImage"/>
30 </hbox>
31
32 <vbox id="alertTextBox" class="alertTextBox">
33 <label id="alertTitleLabel" class="alertTitle plain"/>
34 <label id="alertTextLabel" class="alertText plain"/>
35 </vbox>
36 </box>
37
38 <vbox class="alertCloseBox">
39 <toolbarbutton class="alertCloseButton close-icon"
40 tooltiptext="&closeAlert.tooltip;"
41 onclick="event.stopPropagation();"
42 oncommand="close();"/>
43 </vbox>
44 </box>
45
46 <!-- This method is called inline because we want to make sure we establish the width
47 and height of the alert before we fire the onload handler. -->
48 <script type="application/javascript">prefillAlertInfo();</script>
49 </window>
50

mercurial