nyromodal输入密钥,如何禁用它。 (iframe刷新通话)

时间:2011-07-18 23:16:24

标签: jquery nyromodal

当打开叠加模式时,如果我按下回车键,则调用iframe刷新。我无法弄清楚如何禁用它。任何帮助将不胜感激。

到目前为止,这是我发现此问题的唯一资源:http://code.google.com/p/nyromodal/issues/detail?id=271

1 个答案:

答案 0 :(得分:0)

$('.nyroModal').nyroModal({
    closeOnClick: false,
    closeButton: "<span class='nyroModalClose'>CLOSE</span>",
    callbacks: {
        beforeShowCont: function(nm) { 
            Cufon.replace('span.nyroModalClose', { color: '#015eb3', fontFamily: 'UniversCondensed' });
            $('#modal-respass .show-reset').show();
            $('#modal-respass .show-thank-you').hide();
        },
        afterShowCont: function(nm) {
            $('.nyroModalCont').css({'height':'auto'});
            /* this is the eval ==> */$('a').blur();
        }
    }
});