开发者

Jquery UI dialog too much recursion problem

开发者 https://www.devze.com 2023-03-16 20:55 出处:网络
Below code gives Too much recursion error in Jquery ui dialog $( \"#dialog-confirm\" ).dialog({ resizable: false,

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

精彩评论

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