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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial