|
|
@ -1343,7 +1343,7 @@ module ApplicationHelper
|
|
|
|
start_of_week = start_of_week.to_i % 7
|
|
|
|
start_of_week = start_of_week.to_i % 7
|
|
|
|
|
|
|
|
|
|
|
|
tags = javascript_tag(
|
|
|
|
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: '" +
|
|
|
|
"showOn: 'button', buttonImageOnly: true, buttonImage: '" +
|
|
|
|
path_to_image('/images/calendar.png') +
|
|
|
|
path_to_image('/images/calendar.png') +
|
|
|
|
"', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true};")
|
|
|
|
"', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true};")
|
|
|
@ -1365,7 +1365,7 @@ module ApplicationHelper
|
|
|
|
start_of_week = start_of_week.to_i % 7
|
|
|
|
start_of_week = start_of_week.to_i % 7
|
|
|
|
|
|
|
|
|
|
|
|
tags = javascript_tag(
|
|
|
|
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: '" +
|
|
|
|
"showOn: 'button', buttonImageOnly: true, buttonImage: '" +
|
|
|
|
path_to_image('/images/calendar.png') +
|
|
|
|
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);} };")
|
|
|
|
"', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true, onClose: function(dateText, inst) {TimeClose(dateText,inst);}, beforeShow : function(input){TimeBeforeShow(input);} };")
|
|
|
|