jQuery UI Datepicker月份和年份组合在Popup中不起作用

时间:2013-10-29 17:57:24

标签: jquery datepicker jquery-ui-datepicker

当我在BlockUI(弹出窗口)中打开jQuery UI datepicker并尝试更改月份和年份时,下拉列表无法打开。
我使用jquery-1.3.2.min.js这也发生在这种情况?知道如何回馈这种情况吗? 我有这个功能来初始化datepickers。

    Formulario.prototype.inicializarDatePickers = function(elem) {
    // Inicializar os datepicker
    if (elem != null) {
        $(elem).find("input[dataType = 'xsd-date']", formParent).each(
                function() {

                    $(this)
                            .datepicker(
                                    {
                                        dateFormat : 'dd-mm-yy',
                                        monthNames : [ 'Janeiro', 'Fevereiro',
                                                'Março', 'Abril', 'Maio',
                                                'Junho', 'Julho', 'Agosto',
                                                'Setembro', 'Outubro',
                                                'Novembro', 'Dezembro' ],
                                        dayNamesMin : [ 'D', 'S', 'T', 'Q',
                                                'Q', 'S', 'S' ],
                                        gotoCurrent : true,
                                        changeYear: true,
                                        changeMonth: true,
                                        firstDay : 1,
                                        yearRange : '1900:2200',
                                        dayNames : [ 'Domingo', 'Segunda',
                                                'Terça', 'Quarta', 'Quinta',
                                                'Sexta', 'Sábado' ],
                                        showOptions : {
                                            direction : 'down'
                                        }
                                    });
                });

    } 
    $('#ui-datepicker-div').addClass('blockMsg');   
}

全部谢谢

0 个答案:

没有答案
相关问题