fix ad_banner data picker not working when on 180
This commit is contained in:
parent
d480a10661
commit
6fd2dac4d5
|
@ -36,8 +36,8 @@
|
||||||
today = today.format('isoDate');
|
today = today.format('isoDate');
|
||||||
var state = false;
|
var state = false;
|
||||||
var arr = state ? "▼" : "▲"
|
var arr = state ? "▼" : "▲"
|
||||||
var start_date = <%= @ad_image.post_date.nil?? 'today' : "'#{@ad_image.post_date.strftime('%Y / %m / %d')}'" %>;
|
var start_date = <%= (@ad_image.post_date.nil?? 'today' : "'#{@ad_image.post_date.strftime('%Y / %m / %d')}'").html_safe %>;
|
||||||
var end_date = <%= @ad_image.unpost_date.nil?? 'today' : "'#{@ad_image.unpost_date.strftime('%Y / %m / %d')}'" %>;
|
var end_date = <%= (@ad_image.unpost_date.nil?? 'today' : "'#{@ad_image.unpost_date.strftime('%Y / %m / %d')}'").html_safe %>;
|
||||||
//calendarRange
|
//calendarRange
|
||||||
$('#calendarRange .showDate').html(start_date+" - "+end_date);
|
$('#calendarRange .showDate').html(start_date+" - "+end_date);
|
||||||
$('#calendarRange .calendarInput').val(start_date+" - "+end_date);
|
$('#calendarRange .calendarInput').val(start_date+" - "+end_date);
|
||||||
|
|
Loading…
Reference in New Issue