Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

signup: Remove stale highlighting function.

Ganesh Paward9410f37c154
diff --git a/static/js/portico/signup.js b/static/js/portico/signup.js
index 6ebb6d6c055..dd99855a386 100644
--- a/static/js/portico/signup.js
+++ b/static/js/portico/signup.js
@@ -42,16 +42,6 @@ $(() => {
"#id_new_password2 ~ .password_visibility_toggle",
);
- function highlight(class_to_add) {
- // Set a class on the enclosing control group.
- return function (element) {
- $(element)
- .closest(".control-group")
- .removeClass("success error")
- .addClass(class_to_add);
- };
- }
-
$("#registration, #password_reset").validate({
rules: {
password: "password_strength",
@@ -71,8 +61,6 @@ $(() => {
$error.insertAfter($element).addClass("help-inline alert alert-error");
}
},
- highlight: highlight("error"),
- unhighlight: highlight("success"),
});
if ($("#registration").length > 0) {