From 5b85aa09619e79ebb2d2bb1dbd4e0d7466895806 Mon Sep 17 00:00:00 2001 From: zhanghaitao <562681745@qq.com> Date: Sat, 23 Aug 2014 14:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E6=97=A5=E6=9C=9F=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E4=B8=8D=E5=8F=AF=E7=BC=96=E8=BE=91=E6=80=A7?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E8=BE=93=E5=85=A5=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E6=97=A5=E6=9C=9F=E8=BF=94=E5=9B=9E=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1f6091f12..fc12640e9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1343,7 +1343,7 @@ module ApplicationHelper start_of_week = start_of_week.to_i % 7 tags = javascript_tag( - "var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " + + "var datepickerOptions={dateFormat: 'yy-mm-dd',EditText:false, firstDay: #{start_of_week}, " + "showOn: 'button', buttonImageOnly: true, buttonImage: '" + path_to_image('/images/calendar.png') + "', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true};") @@ -1365,7 +1365,7 @@ module ApplicationHelper start_of_week = start_of_week.to_i % 7 tags = javascript_tag( - "var datepickerOptions={dateFormat: 'yy-mm-dd',minDate: new Date(), firstDay: #{start_of_week}, " + + "var datepickerOptions={dateFormat: 'yy-mm-dd',minDate: new Date(),EditText:false, firstDay: #{start_of_week}, " + "showOn: 'button', buttonImageOnly: true, buttonImage: '" + path_to_image('/images/calendar.png') + "', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true, onClose: function(dateText, inst) {TimeClose(dateText,inst);}, beforeShow : function(input){TimeBeforeShow(input);} };")