Merge branch 'master' into desktop_harry
This commit is contained in:
commit
957d4eaebb
3 files changed
+25
-25
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<li class="span3" id = 'asd'>
|
||||
<%= image_tag ad_image.file %>
|
||||
<%= image_tag ad_image.file rescue nil %>
|
||||
<p>
|
||||
<%= ad_image.display? ? '[Showing]' : '[NotShawing]' %>
|
||||
<%= "#{ad_image.post_date ||'NeedReset' }~#{ad_image.unpost_date || 'NeedReset'}" %>
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
today = today.format('isoDate');
|
||||
var state = false;
|
||||
var arr = state ? "▼" : "▲"
|
||||
var start_date = <%= "'#{@ad_image.post_date.strftime('%Y / %m / %d')}'"%> || today
|
||||
var end_date = <%= "'#{@ad_image.unpost_date.strftime('%Y / %m / %d')}'"%> || today
|
||||
var start_date = <%= @ad_image.post_date.nil?? 'today' : "'#{@ad_image.post_date.strftime('%Y / %m / %d')}'" %>;
|
||||
var end_date = <%= @ad_image.unpost_date.nil?? 'today' : "'#{@ad_image.unpost_date.strftime('%Y / %m / %d')}'" %>;
|
||||
//calendarRange
|
||||
$('#calendarRange .showDate').html(start_date+" - "+end_date)
|
||||
$('#calendarRange .showDate').html(start_date+" - "+end_date);
|
||||
$('#calendarRange .calendarInput').val(start_date+" - "+end_date);
|
||||
$('#calendarRange #widgetCalendar').DatePicker({
|
||||
flat: true,
|
||||
|
||||
Reference in new issue
Block a user