mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 07:24:47 +00:00
Small fixes to CCK in pref for 1.0
This commit is contained in:
parent
9ac02c6c88
commit
0b6409d8b1
@ -299,7 +299,7 @@ function ClearAll()
|
||||
if (elements[i].id != "saveOnExit")
|
||||
elements[i].checked = false;
|
||||
} else if (elements[i].className == "ccklist") {
|
||||
document.getElementById(elements[i].id).clear;
|
||||
document.getElementById(elements[i].id).clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -616,13 +616,16 @@ function OnRegLoad()
|
||||
document.getElementById('NameValue').value = listbox.selectedItem.cck['namevalue'];
|
||||
document.getElementById('Type').value = listbox.selectedItem.cck['type'];
|
||||
}
|
||||
|
||||
regCheckOKButton();
|
||||
}
|
||||
|
||||
function regCheckOKButton()
|
||||
{
|
||||
if ((document.getElementById("prefname").value) && (document.getElementById("prefvalue").value)) {
|
||||
document.documentElement.getButton("accept").setAttribute( "disabled", "false" );
|
||||
if ((document.getElementById("PrettyName").value) &&
|
||||
(document.getElementById("Key").value) &&
|
||||
(document.getElementById("Name").value) &&
|
||||
(document.getElementById("NameValue").value)) {
|
||||
document.documentElement.getButton("accept").setAttribute( "disabled", "false" );
|
||||
} else {
|
||||
document.documentElement.getButton("accept").setAttribute( "disabled", "true" );
|
||||
}
|
||||
|
@ -504,6 +504,11 @@
|
||||
</groupbox>
|
||||
</wizardpage>
|
||||
|
||||
<wizardpage>
|
||||
<description>&cckWizardFinish.description;</description>
|
||||
</wizardpage>
|
||||
|
||||
|
||||
<stringbundleset id="stringbundleset">
|
||||
<stringbundle id="bundle_cckwizard" src="chrome://cckwizard/locale/cckwizard.properties"/>
|
||||
</stringbundleset>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<script src="chrome://cckwizard/content/cckwizard.js"/>
|
||||
<vbox>
|
||||
<label control="PrettyName">Name:</label>
|
||||
<textbox id="PrettyName"/>
|
||||
<textbox id="PrettyName" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
|
||||
<label control="RootKey">®RootKey.label;:</label>
|
||||
<menulist id="RootKey">
|
||||
<menupopup>
|
||||
@ -63,11 +63,11 @@
|
||||
</menupopup>
|
||||
</menulist>
|
||||
<label control="Key">®Key.label;:</label>
|
||||
<textbox id="Key"/>
|
||||
<textbox id="Key" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
|
||||
<label control="Name">®Name.label;:</label>
|
||||
<textbox id="Name"/>
|
||||
<textbox id="Name" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
|
||||
<label control="NameValue1">®NameValue.label;:</label>
|
||||
<textbox id="NameValue"/>
|
||||
<textbox id="NameValue" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
|
||||
<label control="Type">®Type.label;:</label>
|
||||
<menulist id="Type">
|
||||
<menupopup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user