26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
39 lines
1.3 KiB
JavaScript
Executable File
39 lines
1.3 KiB
JavaScript
Executable File
function showConfirmationWindow(message) {
|
|
return showWindow('#confirmationTemplate', message)
|
|
};
|
|
|
|
function showWindow(template, message) {
|
|
|
|
var dfd = new jQuery.Deferred();
|
|
var result = false;
|
|
|
|
$("<div id='popupWindow'></div>")
|
|
.appendTo("body")
|
|
.kendoWindow({
|
|
width: "350px",
|
|
modal: true,
|
|
animation: false,
|
|
title: "Action Confirmation",
|
|
visible: false,
|
|
close: function (e) {
|
|
this.destroy();
|
|
dfd.resolve(result);
|
|
}
|
|
}).data('kendoWindow').content("<div class='popupMessage'></div></br><hr/><div class='dialog_buttons'><input type='button' class='confirm_yes k-button' value='Yes' style='width: 70px' /> <input type='button' class='confirm_no k-button' value='No' style='width: 70px' /></div>").center().open();
|
|
|
|
$('.popupMessage').html(message);
|
|
|
|
$('#popupWindow .confirm_yes').val('OK');
|
|
$('#popupWindow .confirm_no').val('Cancel');
|
|
|
|
$('#popupWindow .confirm_no').click(function () {
|
|
$('#popupWindow').data('kendoWindow').close();
|
|
});
|
|
|
|
$('#popupWindow .confirm_yes').click(function () {
|
|
result = true;
|
|
$('#popupWindow').data('kendoWindow').close();
|
|
});
|
|
|
|
return dfd.promise();
|
|
}; |