开发者

Jquery UI dialog too much recursion problem

Below code gives Too much recursion error in Jquery ui dialog

$( "#dialog-confirm" ).dialog({
        resizable: false,
        height:140,
        modal: true,
        buttons开发者_JAVA技巧: {
            "Delete all items": function() {
                $( this ).dialog( "close" );
            },
            Cancel: function() {
                $( this ).dialog( "close" );
            }
        },
                   close:function(){
                       $( this ).dialog( "close" );
                }
    });

How to fix this?


Infinite recursion is happening here. Just change

close:function(){
                   $( this ).dialog( "close" );
            }

to

 close:function(){

            }


Maybe this is because you have infinite recursion.

close:function(){
    $( this ).dialog( "close" );
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜