mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
Display reason for temporary limits on members
This commit is contained in:
parent
273c95b449
commit
9700b8f593
5 changed files with 37 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue