gecko-dev/xpfe/components/prefwindow/resources/content/pref-imageblocking.xul

102 lines
3.6 KiB
XML

<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % prefImageBlockingDTD SYSTEM "chrome://communicator/locale/pref/pref-imageblocking.dtd" >
%prefImageBlockingDTD;
]>
<window xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
align="vertical" title="&window.title;"
onload="startup();">
<keyset id="keyset"/>
<script>
<![CDATA[
var imageBehaviour, imageWarning, imageBehaviourParent, imageWarningParent;
function startup()
{
doSetOKCancel( onOK );
imageBehaviour = document.getElementById("networkImageBehaviour");
imageWarning = document.getElementById("networkImageWarnAboutImages");
imageBehaviourParent = window.opener.document.getElementById("networkImageBehaviour");
imageWarningParent = window.opener.document.getElementById("networkImageWarnAboutImages");
imageBehaviour.data = parseInt( imageBehaviourParent.getAttribute("value") );
imageBehaviour.selectedItem = imageBehaviour.getElementsByAttribute( "data", imageBehaviour.data )[0];
imageWarning.checked = imageWarningParent.getAttribute("checked");
}
function onOK()
{
imageBehaviourParent.setAttribute( "value", ( imageBehaviour.data != "" ? parseInt( imageBehaviour.data ) : 0 ) );
imageWarningParent.setAttribute("checked", imageWarning.checked );
window.close();
}
function viewImages()
{
window.openDialog("chrome://wallet/content/CookieViewer.xul","","modal=yes,chrome,resizable=no", 2 );
}
]]>
</script>
<box autostretch="never" valign="top">
<image class="image-icon label"/>
<box orient="vertical">
<html class="header">&imageDetails;</html>
<radiogroup id="networkImageBehaviour" orient="vertical" autostretch="never">
<radio data="0" value="&accAllImagesRadio.label;" accesskey="&accAllImagesRadio.accesskey;"/>
<radio data="1" value="&accOrgImagesRadio.label;" accesskey="&accOrgImagesRadio.accesskey;"/>
<radio data="2" value="&disableImages.label;" accesskey="&disableImages.accesskey;"/>
</radiogroup>
<checkbox class="indent" id="networkImageWarnAboutImages" value="&warnAboutImages.label;" accesskey="&warnAboutImages.accesskey;"/>
<separator/>
<box autostretch="never">
<box style="max-width: 22em;">
<html style="max-width: 20em;">&viewImagesExplanation.label;</html>
</box>
<button class="dialog" value="&viewImages.label;" accesskey="&viewImages.accesskey;" oncommand="viewImages();"/>
</box>
<separator class="groove"/>
<box id="okCancelButtonsRight"/>
</box>
</box>
</window>