日期选择器问题 [英] Date picker issue

查看:130
本文介绍了日期选择器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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.js 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆