Ok here's my window
(width is ignored btw, but thats besides the point)
So I then have a click event, based on a template item which calls this
Works great...until I close the window, then click on another button which calls this again...
Ideas?...does it destroy itself on close or something?
<
div
id
=
"edit-window"
data-role
=
"window"
data-visible
=
"false"
data-modal
=
"true"
data-iframe
=
"true"
data-resizable
=
"false"
data-minWidth
=
"600px"
>
</
div
>
So I then have a click event, based on a template item which calls this
onRunVerb: function (verb) {
var
window = $(
"#edit-window"
).data(
"kendoWindow"
);
window.title(verb.data.text);
window.content(
"<div class='loading''>Loading...</div>"
);
window.refresh(verb.data.url);
window.center().open();
}
Works great...until I close the window, then click on another button which calls this again...
window is undefined
window.title(verb.data.text); |
Ideas?...does it destroy itself on close or something?