0

我已经安装了最新版本的 joomla 2.5 和最新版本的 meadowmart 2.0.8e。但是,当我去编辑我输入的产品的产品状态并更改可用日期时,在 chrome 中它不会工作,但在 Firefox 中它会。当我说它不起作用时,我的意思是当我点击日期字段时,日期选择器打开,但是当我单击日期时,它不会在字段中返回它。这似乎是一个已知问题,但还没有解决方案。我一直在互联网上搜索,我也试图自己解决这个问题,但没有成功。这是我单击日期时使用的代码:它似乎正在使用来自 ajax.googleapis.com/ajax/libs/jquery/1.6.4 的 jquery 1.6.4 中的 datepicker

jQuery(document).ready( function($) {
        $(".datepicker").live( "focus", function() {                
            $("#product_available_date_text").datepicker({              
                changeMonth: true,
                changeYear: true,
                '.$yearRange.'
                dateFormat:"'.strtolower($jsDateFormat).'",
                altField: $("#product_available_date_text").prev(),
                altFormat: "yy-mm-dd"
            });
        });
        $(".js-date-reset").click(function() {              
            $(this).prev("input").val("'.JText::_('COM_VIRTUEMART_NEVER').'").prev("input").val("0");
        });
    });

我已在第 1238 行的管理员/组件/com_virtuemart/helpers/config.php 中找到此代码。有人可以帮忙吗?

4

1 回答 1

0

所以我想答案是

找到 administrator/components/com_virtuemart/helpers/config.php 下的文件并将第 1242 行更改为:

$display .= '<input id="'.$id.'_text" class="datepicker" type="date" value="'.$formatedDate.'" />'; 

并更换

type="date" to type="text". 
于 2012-08-12T09:04:41.640 回答