解决里程碑新建里程碑的时候弹窗不显示日历

This commit is contained in:
huang 2016-11-09 15:57:06 +08:00
parent 919e973efb
commit e39c3cfd9c
2 changed files with 7 additions and 3 deletions

View File

@ -22,8 +22,8 @@
</li>
<li class="mb10 clear">
<label class=" fl ml5">&nbsp;日期&nbsp;&nbsp;:&nbsp;</label>
<%= f.text_field :effective_date, :size => 10, :readonly => true, :class => "issues_calendar_input fl ml3", :id => "version_name", :placeholder=>"结束日期", :style=>"height:28px;", :no_label => true %>
<%= calendar_for('version_name') %>
<%= f.text_field :effective_date, :size => 10, :readonly => true, :class => "issues_calendar_input fl ml3", :id => "version_index_create_name", :placeholder=>"结束日期", :style=>"height:28px;", :no_label => true %>
<%#= calendar_for('version_index_create_name') %>
</li>
<li class="mb10 clear">
<label class="ml5">&nbsp;状态&nbsp;&nbsp;:&nbsp;</label>
@ -44,8 +44,8 @@
{
if(popub_regex_version_name())
{
hideModal();
$("#popub_new_project_version_form").submit();
hideModal();
}
}

View File

@ -1,2 +1,6 @@
var htmlvalue = "<%= escape_javascript(render :partial => 'versions/new_milestone') %>";
pop_box_new(htmlvalue,820,316);
var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: 0, showOn: 'button', buttonImageOnly: true, buttonImage: '/images/public_icon.png', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true};
$(function() { $('#version_index_create_name').datepicker(datepickerOptions);
// $('#evaluation_end_time').datepicker(datepickerOptions);
});