$(document).ready(function(){
	$('#allow_name_change').on('change', function(){
		if ($('#allow_name_change').is(':checked')) {
			$('#name-change-settings').css('display', 'block');
		} else {
			$('#name-change-settings').css('display', 'none');
		}
	});

	$('#allow_remember').on('change', function(){
		if ('checked' == $(this).attr('checked')) {
			$('#remember-length').css('display', 'block');
		} else {
			$('#remember-length').css('display', 'none');
		}
	});

    $('#status').on('change', function() {
        if (0 == $(this).val()) {
            $('#offline_reason').parents('.form-group').css('display', 'block');
        } else {
            $('#offline_reason').parents('.form-group').css('display', 'none');
        }
    });
});
@@ -308,35 +308,34 @@
 if (
-'checked' == $(this).attr
+$('#allow_remember').is
 ('
+:
 chec
@@ -529,12 +529,17 @@
 = $(
-this
+'#status'
 ).va

fix js get $(this) error