Small fixes to CCK in pref for 1.0

This commit is contained in:
mkaply%us.ibm.com 2006-05-03 21:00:38 +00:00
parent 9ac02c6c88
commit 0b6409d8b1
3 changed files with 16 additions and 8 deletions

View File

@ -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" );
}

View File

@ -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>

View File

@ -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">&regRootKey.label;:</label>
<menulist id="RootKey">
<menupopup>
@ -63,11 +63,11 @@
</menupopup>
</menulist>
<label control="Key">&regKey.label;:</label>
<textbox id="Key"/>
<textbox id="Key" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
<label control="Name">&regName.label;:</label>
<textbox id="Name"/>
<textbox id="Name" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
<label control="NameValue1">&regNameValue.label;:</label>
<textbox id="NameValue"/>
<textbox id="NameValue" onchange="regCheckOKButton();" onkeyup="regCheckOKButton();"/>
<label control="Type">&regType.label;:</label>
<menulist id="Type">
<menupopup>