...So I have code to open a Modal Window on a screen:
var frmUpdateSuccessDiv = $('#frmUpdateSuccess').kendoWindow({
height: "260px",
width: "480px",
title: false,
modal: true,
visible: false
}).data('kendoWindow');
frmUpdateSuccessDiv.center();
frmUpdateSuccessDiv.open();
On the window is a button with id="uSuccess"
How do I code the jQuery to not only close the modal window, but the parent as well?
$('#uSuccess').click(function () {
$('#frmUpdateSuccess').closest(".k-window-content").data("kendoWindow").close();
});
Isn't getting it done... and
$('#uSuccess').click(function () {
window.parent.close();
});
only seems to work in IE (and throws up a big ugly warning that "the button wants to close the window, blah, blah...)
Ideas?