日期选择器问题 [英] Date picker issue
问题描述
我在Magento模块中遇到一个奇怪的问题.
I am going through a strange issue in my Magento module.
-
如果存在,我无法在magento datepicker(日历)中选择日期 日期已禁用.
I cant select dates in magento datepicker (calendar) if the present date is disabled.
但是,如果我单击当前月份中的任何日期,然后转到下一个 一个月再回来,那么我可以选择日期!!!!!!!
But, If I click any of the date in present month and go to the next month and comes back, then I can select the dates!!!!!!
我的下面的代码,
Calendar.setup({
inputField : '_dob',
ifFormat : '%d/%m/%y',
button : '_dob_trig',
align : 'Bl',
singleClick : true,
date: '25/6/2013',
这里按日期属性,我试图设置一个默认日期.但这也行不通.如果我可以选择当前日期,那么日历可以完美运行!
Here by date attribute, I am trying to set a default date. But it too doesnt work. If I enables the present date to selectable, then the calendar works perfectly!
如果有人之前经历过此过程,请分享您的解决方案.
If anyone went through this before please share your solution.
推荐答案
最终找到了解决方案...!
Finally got a solution...!
在magento的默认js
文件夹中有一个calendar.j
文件.在此,有一个currentDateEl
参数.我将其更改为currentDateEl: 25/06/2013
.问题已解决.
There is a calendar.j
s file in magento's default js
folder. In that, there is a currentDateEl
parameter. I changed it to currentDateEl: 25/06/2013
... The issue is solved.
这篇关于日期选择器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!