gecko-dev/suite/common/pref/pref-cookies.xul

129 строки
5.1 KiB
Plaintext
Исходник Обычный вид История

<?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):
-->
2006-05-17 06:25:03 +04:00
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
2006-05-17 06:24:27 +04:00
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
2006-05-17 06:25:06 +04:00
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % prefCookieDTD SYSTEM "chrome://communicator/locale/pref/pref-cookies.dtd" >
%prefCookieDTD;
]>
<window debug="false" xmlns:html="http://www.w3.org/TR/REC-html40" id="cookieWindow"
2006-05-17 06:25:03 +04:00
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
2006-05-17 06:25:06 +04:00
class="color-dialog"
2006-05-17 06:25:11 +04:00
align="vertical"
onload="imageBlockingEnabled(); parent.initPanel('chrome://communicator/content/pref/pref-cookies.xul');">
2006-05-17 06:25:03 +04:00
<script>
<![CDATA[
_elementIDs = ["networkCookieBehaviour", "networkWarnAboutCookies", "networkImageBehaviour", "networkImageWarnAboutImages"];
2006-05-17 06:25:11 +04:00
// enable image blocker if "imageblocker.enabled" pref is true
function imageBlockingEnabled()
{
if( parent.hPrefWindow.getPref( "bool", "imageblocker.enabled" ) )
{
var element = document.getElementById( "imagesArea" );
element.removeAttribute("hidden");
var cookieHeader = document.getElementById( "cookieHeader" );
cookieHeader.setAttribute( "title", cookieHeader.getAttribute( "titleWithImages" ) );
}
}
2006-05-17 06:25:03 +04:00
function updateImageFields( aInteger, aBoolean )
{
var imageBehaviourField = document.getElementById("networkImageBehaviour");
var imageBehaviourCheckbox = document.getElementById("networkImageWarnAboutImages");
imageBehaviourField.value = aInteger;
imageBehaviourCheckbox.checked = aBoolean;
}
function viewCookies()
{
window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","","modal=yes,chrome,resizable=no", 0);
}
function viewImages()
{
window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","","modal=yes,chrome,resizable=no", 2 );
}
2006-05-17 06:25:03 +04:00
]]>
</script>
<box class="box-smallheader" id="cookieHeader"
title="&lHeader;" titleWithImages="&lHeaderWithImages;"/>
2006-05-17 06:25:03 +04:00
<titledbox orient="vertical">
<title><text value="&cookies;"/></title>
2006-05-17 06:24:52 +04:00
<html>&cookieDetails;</html>
<radiogroup id="networkCookieBehaviour" orient="vertical" autostretch="never"
pref="true" preftype="int" prefstring="network.cookie.cookieBehavior"
prefattribute="data">
<radio group="networkCookieBehaviour" data="0" value="&accAllCookiesRadio.label;" accesskey="&accAllCookiesRadio.accesskey;"/>
<radio group="networkCookieBehaviour" data="1" value="&accOrgCookiesRadio.label;" accesskey="&accOrgCookiesRadio.accesskey;"/>
<radio group="networkCookieBehaviour" data="2" value="&disableCookies.label;" accesskey="&disableCookies.accesskey;"/>
2006-05-17 06:24:52 +04:00
</radiogroup>
2006-05-17 06:25:03 +04:00
<checkbox class="indent" id="networkWarnAboutCookies" value="&warnAboutCookies.label;" accesskey="&warnAboutCookies.accesskey;"
2006-05-17 06:24:52 +04:00
pref="true" preftype="bool" prefstring="network.cookie.warnAboutCookies"
prefattribute="checked"/>
<box autostretch="never" halign="right">
<button class="dialog" value="&viewCookies.label;" accesskey="&viewCookies.accesskey;" oncommand="viewCookies();"/>
</box>
</titledbox>
2006-05-17 06:25:03 +04:00
2006-05-17 06:25:11 +04:00
<titledbox orient="vertical" id="imagesArea" hidden="true">
<title><text value="&images;"/></title>
<html>&imageDetails;</html>
2006-05-17 06:25:06 +04:00
<radiogroup id="networkImageBehaviour" orient="vertical" autostretch="never"
pref="true" preftype="int" prefstring="network.image.imageBehavior"
prefattribute="data">
<radio group="networkImageBehaviour" data="0" value="&accAllImagesRadio.label;" accesskey="&accAllImagesRadio.accesskey;"/>
<radio group="networkImageBehaviour" data="1" value="&accOrgImagesRadio.label;" accesskey="&accOrgImagesRadio.accesskey;"/>
<radio group="networkImageBehaviour" data="2" value="&disableImages.label;" accesskey="&disableImages.accesskey;"/>
2006-05-17 06:25:03 +04:00
</radiogroup>
2006-05-17 06:25:06 +04:00
<checkbox class="indent" id="networkImageWarnAboutImages" value="&warnAboutImages.label;" accesskey="&warnAboutImages.accesskey;"
pref="true" preftype="bool" prefstring="network.image.warnAboutImages"
prefattribute="checked"/>
2006-05-17 06:25:03 +04:00
<separator/>
<box autostretch="never">
2006-05-17 06:25:06 +04:00
<html>&viewImagesExplanation.label;</html>
2006-05-17 06:25:03 +04:00
<button class="dialog" value="&viewImages.label;" accesskey="&viewImages.accesskey;" oncommand="viewImages();"/>
</box>
</titledbox>
</window>