Fix refused_reason textarea not displaying properly

This commit is contained in:
Kijin Sung 2023-07-04 01:21:57 +09:00
parent 8011e9a2f6
commit 6ce04aeeb2

View file

@ -69,7 +69,7 @@
</block>
</div>
</div>
<div class="x_control-group" cond="$member_srl">
<div class="x_control-group div_status" cond="$member_srl">
<label class="x_control-label">{$lang->status}</label>
<div class="x_controls">
<label class="x_inline" for="status_approved"><input type="radio" name="status" id="status_approved" value="APPROVED" checked="checked"|cond="$member_info->status == 'APPROVED' || $member_info->denied == 'Y' || $member_info->member_srl == $logged_info->member_srl" /> {$lang->approval}</label>
@ -181,25 +181,19 @@
});
});
var refused_reason_division = $('.div_refused_reason');
if(!$('#deny').is(':checked'))
{
refused_reason_division.hide();
}
$('#deny').change(function(){
if($(this).is(':checked')){
refused_reason_division.slideDown(200);
var div_refused_reason = $('.div_refused_reason');
$('.div_status input').on('change', function() {
if ($('#status_approved').is(':checked')) {
div_refused_reason.hide();
} else {
div_refused_reason.show();
}
});
$('#appoval').change(function(){
if($(this).is(':checked')){
refused_reason_division.slideUp(200);
}
});
}).first().triggerHandler('change');
if(!$('#until').val())
{
$('.div_limited_reason').hide();
}
})(jQuery);
</script>