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" );
}
精彩评论