I have a modal Dialog Box confirmation and it works fine if I click Ok. However, when I click cancel (lets say a user changes their mind) and decides a couple minutes later to activate the modal, nothing happens. The background is grayed out but no dialog box. I'm using the following to cancel:
dialog = $("#dialog-form").dialog({
autoOpen: false,
height: 400,
width: 350,
modal: true,
buttons: {
"update an item": function() {
updateListItem();
},
Cancel: function() {
dialog.dialog("close");
}
},
close: function() {
form[0].reset();
allFields.removeClass( "ui-state-error" );
}
});
Anyone else ran into this issue? I've seen others on here but it doesn't look related to what I'm facing.