2006-05-17 02:31:10 +00:00
|
|
|
<?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/
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS
|
|
|
|
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
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):
|
|
|
|
Joe Hewitt <hewitt@netscape.com>
|
|
|
|
-->
|
|
|
|
|
2006-05-17 02:35:16 +00:00
|
|
|
<!DOCTYPE dialog SYSTEM "chrome://communicator/locale/pref/pref-smart_browsing.dtd" >
|
2006-05-17 02:31:10 +00:00
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/prefpanels.css" type="text/css"?>
|
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
<dialog id="pref-smart_browsing-ac" title="&autoCompleteAdvanced.title;"
|
2006-05-17 02:35:21 +00:00
|
|
|
buttons="accept,cancel,help"
|
2006-05-17 02:32:01 +00:00
|
|
|
ondialogaccept="return onAccept();"
|
2006-05-17 02:35:29 +00:00
|
|
|
ondialoghelp="doHelpButton();"
|
2006-05-17 02:31:10 +00:00
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2006-05-17 02:35:31 +00:00
|
|
|
<script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
|
2006-05-17 02:31:10 +00:00
|
|
|
<script type="application/x-javascript"><![CDATA[
|
|
|
|
|
|
|
|
window.onload = function()
|
2006-05-17 02:32:01 +00:00
|
|
|
{
|
2006-05-17 02:31:10 +00:00
|
|
|
setCheck("cbxAutoFill", window.arguments[0]);
|
|
|
|
setCheck("cbxShowPopup", window.arguments[1]);
|
|
|
|
setCheck("cbxShowSearch", window.arguments[2]);
|
2006-05-17 02:32:36 +00:00
|
|
|
setCheck("cbxMatchOnlyTyped", window.arguments[3]);
|
2006-05-17 02:31:10 +00:00
|
|
|
|
|
|
|
updateImage("AutoFill");
|
|
|
|
updateImage("ShowPopup");
|
|
|
|
updateImage("ShowSearch");
|
|
|
|
|
|
|
|
updateShowPopup();
|
|
|
|
}
|
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
function onAccept()
|
2006-05-17 02:31:10 +00:00
|
|
|
{
|
|
|
|
window.opener.receiveACPrefs(getCheck("cbxAutoFill"),
|
|
|
|
getCheck("cbxShowPopup"),
|
2006-05-17 02:32:36 +00:00
|
|
|
getCheck("cbxShowSearch"),
|
|
|
|
getCheck("cbxMatchOnlyTyped"));
|
2006-05-17 02:31:10 +00:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getCheck(aName)
|
|
|
|
{
|
|
|
|
return document.getElementById(aName).checked;
|
|
|
|
}
|
|
|
|
|
|
|
|
function setCheck(aName, aTruth)
|
|
|
|
{
|
2006-05-17 02:32:01 +00:00
|
|
|
if (aTruth == "true")
|
|
|
|
document.getElementById(aName).setAttribute("checked", "true");
|
|
|
|
else
|
|
|
|
document.getElementById(aName).removeAttribute("checked");
|
2006-05-17 02:31:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function updateImage(aImg)
|
|
|
|
{
|
|
|
|
var img = document.getElementById("img"+aImg);
|
|
|
|
var checked = document.getElementById("cbx"+aImg).checked;
|
|
|
|
if (aImg == "AutoFill") {
|
2006-05-17 02:35:43 +00:00
|
|
|
img.setAttribute("src", "chrome://communicator/locale/pref/autocomplete-autofill-"+(checked?"on":"off")+".gif");
|
2006-05-17 02:31:10 +00:00
|
|
|
} else if (aImg == "ShowPopup") {
|
|
|
|
img.setAttribute("hidden", !checked);
|
|
|
|
updateImage("ShowSearch");
|
|
|
|
} else if (aImg == "ShowSearch") {
|
|
|
|
var checked2 = document.getElementById("cbxShowPopup").checked;
|
|
|
|
img.setAttribute("hidden", !checked2 || !checked);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateShowPopup()
|
|
|
|
{
|
|
|
|
var spChecked = document.getElementById("cbxShowPopup").checked;
|
|
|
|
var showSearch = document.getElementById("cbxShowSearch");
|
|
|
|
showSearch.disabled = !spChecked;
|
|
|
|
}
|
|
|
|
|
2006-05-17 02:35:21 +00:00
|
|
|
function doHelpButton() {
|
|
|
|
openHelp('navigator_pref_autocomplete-adv');
|
|
|
|
}
|
|
|
|
|
2006-05-17 02:31:10 +00:00
|
|
|
]]></script>
|
|
|
|
|
|
|
|
<groupbox>
|
2006-05-17 02:31:17 +00:00
|
|
|
<caption label="&autoCompleteAdvanced.title;"/>
|
2006-05-17 02:31:10 +00:00
|
|
|
<vbox>
|
|
|
|
<checkbox id="cbxAutoFill" label="&autoCompleteAutoFill.label;"
|
|
|
|
oncommand="updateImage('AutoFill')"/>
|
|
|
|
<checkbox id="cbxShowPopup" label="&autoCompleteShowPopup.label;"
|
|
|
|
oncommand="updateShowPopup(); updateImage('ShowPopup')"/>
|
|
|
|
<checkbox id="cbxShowSearch" label="&autoCompleteShowSearch.label;"
|
|
|
|
oncommand="updateImage('ShowSearch')"/>
|
2006-05-17 02:32:36 +00:00
|
|
|
<checkbox id="cbxMatchOnlyTyped" label="&autoCompleteMatchOnlyTyped.label;"/>
|
2006-05-17 02:31:10 +00:00
|
|
|
</vbox>
|
|
|
|
</groupbox>
|
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
<label value="&autocompletePreview.label;"/>
|
XUL/theme simplification changes - removing unnecessary boxes and re-writing large portions of the themes to use new -moz-border-colors and -moz-image-region css features. Also cleans up the classic skin quite a bit for both mac and win. Fixes bugs 113024, 113043, 113585, 113586, 115943, 113643, 114475, 99787, 110214, 113977, 113966, 114802, 64894, 90724, 103173, 103199, 103298, 110442, 111472, 111989, 113027, 113041, 109180, 109204, 81581, 81903, 103324, 110108, 114540, and probably more I forgot to mention. r=ben, sr=hyatt
2006-05-17 02:32:00 +00:00
|
|
|
<dialogheader>
|
2006-05-17 02:31:10 +00:00
|
|
|
<vbox height="159">
|
2006-05-17 02:32:37 +00:00
|
|
|
<image id="imgAutoFill" style="min-width: 401px;"/>
|
2006-05-17 02:35:43 +00:00
|
|
|
<image id="imgShowPopup" src="chrome://communicator/locale/pref/autocomplete-showpopup.gif"/>
|
|
|
|
<image id="imgShowSearch" src="chrome://communicator/locale/pref/autocomplete-showsearch.gif"/>
|
2006-05-17 02:31:10 +00:00
|
|
|
</vbox>
|
XUL/theme simplification changes - removing unnecessary boxes and re-writing large portions of the themes to use new -moz-border-colors and -moz-image-region css features. Also cleans up the classic skin quite a bit for both mac and win. Fixes bugs 113024, 113043, 113585, 113586, 115943, 113643, 114475, 99787, 110214, 113977, 113966, 114802, 64894, 90724, 103173, 103199, 103298, 110442, 111472, 111989, 113027, 113041, 109180, 109204, 81581, 81903, 103324, 110108, 114540, and probably more I forgot to mention. r=ben, sr=hyatt
2006-05-17 02:32:00 +00:00
|
|
|
</dialogheader>
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 02:31:28 +00:00
|
|
|
</dialog>
|