|
@@ -1495,15 +1495,16 @@ function initSearch()
|
|
|
document.forms.searchform.search.value = unescape(document.forms.searchform.search.value);
|
|
|
}
|
|
|
|
|
|
-function selectBoards(ids)
|
|
|
+function selectBoards(ids, aFormID)
|
|
|
{
|
|
|
var toggle = true;
|
|
|
+ var aForm = document.getElementById(aFormID);
|
|
|
|
|
|
for (i = 0; i < ids.length; i++)
|
|
|
- toggle = toggle & document.forms.searchform["brd" + ids[i]].checked;
|
|
|
+ toggle = toggle & aForm["brd" + ids[i]].checked;
|
|
|
|
|
|
for (i = 0; i < ids.length; i++)
|
|
|
- document.forms.searchform["brd" + ids[i]].checked = !toggle;
|
|
|
+ aForm["brd" + ids[i]].checked = !toggle;
|
|
|
}
|
|
|
|
|
|
function expandCollapseBoards()
|
|
@@ -1679,34 +1680,34 @@ function previewExternalAvatar(src)
|
|
|
function updateAuthMethod()
|
|
|
{
|
|
|
// What authentication method is being used?
|
|
|
- if (!document.getElementById(\'auth_openid\') || !document.getElementById(\'auth_openid\').checked)
|
|
|
- currentAuthMethod = \'passwd\';
|
|
|
+ if (!document.getElementById('auth_openid') || !document.getElementById('auth_openid').checked)
|
|
|
+ currentAuthMethod = 'passwd';
|
|
|
else
|
|
|
- currentAuthMethod = \'openid\';
|
|
|
+ currentAuthMethod = 'openid';
|
|
|
|
|
|
// No openID?
|
|
|
- if (!document.getElementById(\'auth_openid\'))
|
|
|
+ if (!document.getElementById('auth_openid'))
|
|
|
return true;
|
|
|
|
|
|
- document.forms.creator.openid_url.disabled = currentAuthMethod == \'openid\' ? false : true;
|
|
|
- document.forms.creator.smf_autov_pwmain.disabled = currentAuthMethod == \'passwd\' ? false : true;
|
|
|
- document.forms.creator.smf_autov_pwverify.disabled = currentAuthMethod == \'passwd\' ? false : true;
|
|
|
- document.getElementById(\'smf_autov_pwmain_div\').style.display = currentAuthMethod == \'passwd\' ? \'\' : \'none\';
|
|
|
- document.getElementById(\'smf_autov_pwverify_div\').style.display = currentAuthMethod == \'passwd\' ? \'\' : \'none\';
|
|
|
+ document.forms.creator.openid_url.disabled = currentAuthMethod == 'openid' ? false : true;
|
|
|
+ document.forms.creator.smf_autov_pwmain.disabled = currentAuthMethod == 'passwd' ? false : true;
|
|
|
+ document.forms.creator.smf_autov_pwverify.disabled = currentAuthMethod == 'passwd' ? false : true;
|
|
|
+ document.getElementById('smf_autov_pwmain_div').style.display = currentAuthMethod == 'passwd' ? '' : 'none';
|
|
|
+ document.getElementById('smf_autov_pwverify_div').style.display = currentAuthMethod == 'passwd' ? '' : 'none';
|
|
|
|
|
|
- if (currentAuthMethod == \'passwd\')
|
|
|
+ if (currentAuthMethod == 'passwd')
|
|
|
{
|
|
|
verificationHandle.refreshMainPassword();
|
|
|
verificationHandle.refreshVerifyPassword();
|
|
|
- document.forms.creator.openid_url.style.backgroundColor = \'\';
|
|
|
+ document.forms.creator.openid_url.style.backgroundColor = '';
|
|
|
document.getElementById("auth_openid_div").style.display = "none";
|
|
|
document.getElementById("auth_pass_div").style.display = "";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- document.forms.creator.smf_autov_pwmain.style.backgroundColor = \'\';
|
|
|
- document.forms.creator.smf_autov_pwverify.style.backgroundColor = \'\';
|
|
|
- document.forms.creator.openid_url.style.backgroundColor = \'#FCE184\';
|
|
|
+ document.forms.creator.smf_autov_pwmain.style.backgroundColor = '';
|
|
|
+ document.forms.creator.smf_autov_pwverify.style.backgroundColor = '';
|
|
|
+ document.forms.creator.openid_url.style.backgroundColor = '#FCE184';
|
|
|
document.getElementById("auth_openid_div").style.display = "";
|
|
|
document.getElementById("auth_pass_div").style.display = "none";
|
|
|
}
|