mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
Fix #1607 denied/limited reason not being saved as extra vars
This commit is contained in:
parent
588520ff4b
commit
0986ddf87d
4 changed files with 25 additions and 15 deletions
|
|
@ -161,14 +161,9 @@
|
|||
dateFormat:'yy-mm-dd',
|
||||
defaultDate: new Date("{date('Y-m-d',time())}"),
|
||||
minDate: new Date("{date('Y-m-d',strtotime('-200 years'))}"),
|
||||
|
||||
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);
|
||||
}
|
||||
$('.div_limited_reason').slideDown(200);
|
||||
}
|
||||
};
|
||||
$.extend($.datepicker.regional['{$lang_type}'],option);
|
||||
|
|
@ -177,10 +172,13 @@
|
|||
$(".inputDate").datepicker(option);
|
||||
} else {
|
||||
$(".inputDate").prop('readonly', false);
|
||||
$(".inputDate").on('change', function() {
|
||||
$('.div_limited_reason').slideDown(200);
|
||||
});
|
||||
}
|
||||
$(".dateRemover").click(function() {
|
||||
$(this).prevAll('input').val('');
|
||||
limited_reason_division.slideUp(200);
|
||||
$('.div_limited_reason').slideUp(200);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
|
@ -201,10 +199,9 @@
|
|||
}
|
||||
});
|
||||
|
||||
var limited_reason_division = $('.div_limited_reason');
|
||||
if(!$('#until').val())
|
||||
{
|
||||
limited_reason_division.hide();
|
||||
$('.div_limited_reason').hide();
|
||||
}
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue