Fix error
This commit is contained in:
parent
7080cf7d4d
commit
dc371406f3
|
|
@ -797,12 +797,12 @@
|
|||
</script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
<% if property.p_hire_start_time %>
|
||||
<% if property.p_open_start_time %>
|
||||
$("#p_hire_start_time").datepicker('option', 'minDate', new Date("<%= property.p_open_start_time.strftime("%Y-%m-%d") %>"));
|
||||
$("#p_hire_end_time").datepicker('option', 'minDate', new Date("<%= property.p_open_start_time.strftime("%Y-%m-%d") %>"));
|
||||
$("#p_hire_recurring_end_date").datepicker('option', 'minDate', new Date("<%= property.p_open_start_time.strftime("%Y-%m-%d") %>"));
|
||||
<% end %>
|
||||
<% if property.p_hire_end_time %>
|
||||
<% if property.p_open_end_time %>
|
||||
$("#p_hire_start_time").datepicker('option', 'maxDate', new Date("<%= property.p_open_end_time.strftime("%Y-%m-%d") %>"));
|
||||
$("#p_hire_end_time").datepicker('option', 'maxDate', new Date("<%= property.p_open_end_time.strftime("%Y-%m-%d") %>"));
|
||||
$("#p_hire_recurring_end_date").datepicker('option', 'maxDate', new Date("<%= property.p_open_end_time.strftime("%Y-%m-%d") %>"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue