function showConfirmationWindow(message) { return showWindow('#confirmationTemplate', message) }; function showWindow(template, message) { var dfd = new jQuery.Deferred(); var result = false; $("
") .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("