Display reason for temporary limits on members

This commit is contained in:
Kijin Sung 2016-07-14 22:33:37 +09:00
parent 273c95b449
commit 9700b8f593
5 changed files with 37 additions and 4 deletions

View file

@ -92,6 +92,13 @@
<span class="x_help-inline">{$lang->about_limit_date}</span>
</div>
</div>
<div class="x_control-group div_limited_reason">
<label class="x_control-label">{$lang->refused_reason}</label>
<div class="x_controls">
<textarea name="limited_reason" id="limited_reason" rows="2" cols="42" style="vertical-align:top">{$member_info->limited_reason}</textarea>
<span class="x_help-inline">{$lang->about_refused_reason}</span>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->is_admin}</label>
<div class="x_controls">
@ -136,6 +143,11 @@
onSelect:function(){
$(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))
if($('#until').val()){
limited_reason_division.slideDown(200);
} else {
limited_reason_division.slideUp(200);
}
}
};
$.extend($.datepicker.regional['{$lang_type}'],option);
@ -147,7 +159,9 @@
}
$(".dateRemover").click(function() {
$(this).prevAll('input').val('');
return false;});
limited_reason_division.slideUp(200);
return false;
});
});
var refused_reason_division = $('.div_refused_reason');
@ -165,5 +179,11 @@
refused_reason_division.slideUp(200);
}
});
var limited_reason_division = $('.div_limited_reason');
if(!$('#until').val())
{
limited_reason_division.hide();
}
})(jQuery);
</script>