diff --git a/app/views/versions/_edit.html.erb b/app/views/versions/_edit.html.erb index 146d49ff5..f9ce5a8b1 100644 --- a/app/views/versions/_edit.html.erb +++ b/app/views/versions/_edit.html.erb @@ -23,7 +23,7 @@
  • <%= f.text_field :effective_date, :size => 10, :readonly => true,:class=>"issues_calendar_input fl", :id => "version_effective_date2", :placeholder=>"结束日期", :style=>"height:28px;", :no_label => true %> - <%= calendar_for('version_effective_date2') %> + <%#= calendar_for('version_effective_date2') %>
  • diff --git a/app/views/versions/edit.js.erb b/app/views/versions/edit.js.erb index 377dbeebd..baa20b6cd 100644 --- a/app/views/versions/edit.js.erb +++ b/app/views/versions/edit.js.erb @@ -1,3 +1,7 @@ var htmlvalue = "<%= escape_javascript(render :partial => 'versions/edit') %>"; 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_effective_date2').datepicker(datepickerOptions); +// $('#evaluation_end_time').datepicker(datepickerOptions); +});