Skip to content
Snippets Groups Projects
Commit 91de1661 authored by Antonin's avatar Antonin
Browse files

Inlining a change event

parent 7b05eeec
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,8 @@ $(document).ready(function () {
/**
* Hide/Show password options
*/
var usePassword = $("#use_password");
usePassword.change(function(){
if (usePassword.prop("checked")) {
$("#use_password").change(function(){
if ($(this).prop("checked")) {
$("#password_options").removeClass("hidden");
} else {
$("#password_options").addClass("hidden");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment