I'm trying to get my window to open in the center of the screen.
I'm here totally confuse with the code.
It is working fine in brwosers like FF & Chrome.
here is the code m using:
$(document).ready(function() {
var window = $("#window"),
undo = $("#undo")
.bind("click", function() {
window.data("kendoWindow").open();
undo.show();
});
var onClose = function() {
undo.show();
}
if (!window.data("kendoWindow")) {
window.kendoWindow({
width: "500px",
height: "330px",
modal: true,
title: "RFX Details",
visible: false,
content: "popupContent.html",
actions: ["Refresh", "Maximize", "Close"],
close: onClose
}).data("kendoWidnow").center().open();
}
$("#undo").click(function(){
var window = $("#window").data("kendoWindow");
window.center();
window.open();
});
});
I'm here totally confuse with the code.
It is working fine in brwosers like FF & Chrome.
here is the code m using:
$(document).ready(function() {
var window = $("#window"),
undo = $("#undo")
.bind("click", function() {
window.data("kendoWindow").open();
undo.show();
});
var onClose = function() {
undo.show();
}
if (!window.data("kendoWindow")) {
window.kendoWindow({
width: "500px",
height: "330px",
modal: true,
title: "RFX Details",
visible: false,
content: "popupContent.html",
actions: ["Refresh", "Maximize", "Close"],
close: onClose
}).data("kendoWidnow").center().open();
}
$("#undo").click(function(){
var window = $("#window").data("kendoWindow");
window.center();
window.open();
});
});
