Pārlūkot izejas kodu

! clean up of script.js caused by merging inline functions

Spuds 13 gadi atpakaļ
vecāks
revīzija
2fa7caf995
1 mainītis faili ar 14 papildinājumiem un 14 dzēšanām
  1. 14 14
      Themes/default/scripts/script.js

+ 14 - 14
Themes/default/scripts/script.js

@@ -1679,34 +1679,34 @@ function previewExternalAvatar(src)
 function updateAuthMethod()
 function updateAuthMethod()
 {
 {
 	// What authentication method is being used?
 	// What authentication method is being used?
-	if (!document.getElementById(\'auth_openid\') || !document.getElementById(\'auth_openid\').checked)
+	if (!document.getElementById("auth_openid") || !document.getElementById("auth_openid").checked)
-		currentAuthMethod = \'passwd\';
+		currentAuthMethod = "passwd";
 	else
 	else
-		currentAuthMethod = \'openid\';
+		currentAuthMethod = "openid";
 
 
 	// No openID?
 	// No openID?
-	if (!document.getElementById(\'auth_openid\'))
+	if (!document.getElementById("auth_openid"))
 		return true;
 		return true;
 
 
-	document.forms.creator.openid_url.disabled = currentAuthMethod == \'openid\' ? false : 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_pwmain.disabled = currentAuthMethod == "passwd" ? false : true;
-	document.forms.creator.smf_autov_pwverify.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_pwmain_div").style.display = currentAuthMethod == "passwd" ? "" : "none";
-	document.getElementById(\'smf_autov_pwverify_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.refreshMainPassword();
 		verificationHandle.refreshVerifyPassword();
 		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_openid_div").style.display = "none";
 		document.getElementById("auth_pass_div").style.display = "";
 		document.getElementById("auth_pass_div").style.display = "";
 	}
 	}
 	else
 	else
 	{
 	{
-		document.forms.creator.smf_autov_pwmain.style.backgroundColor = \'\';
+		document.forms.creator.smf_autov_pwmain.style.backgroundColor ="";
-		document.forms.creator.smf_autov_pwverify.style.backgroundColor = \'\';
+		document.forms.creator.smf_autov_pwverify.style.backgroundColor = "";
-		document.forms.creator.openid_url.style.backgroundColor = \'#FCE184\';
+		document.forms.creator.openid_url.style.backgroundColor = "#FCE184";
 		document.getElementById("auth_openid_div").style.display = "";
 		document.getElementById("auth_openid_div").style.display = "";
 		document.getElementById("auth_pass_div").style.display = "none";
 		document.getElementById("auth_pass_div").style.display = "none";
 	}
 	}