Hi,
Thank you for your replay. But something is not correctly placed, I think.
My script is like this :-
<script>
$(function () {
var width = $(window).width > 1120 ? 1100 : 1020,
height = $(window).width > 780 ? 740 : 740;
$("#openDdialog_product").igButton({ labelText: "Product" });
$("#dialog_product").igDialog({
state: "closed",
autoOpen: false,
modal: true,
height: height,
width: width,
headerText: "Product",
showMinimizeButton: true,
showMaximizeButton: true,
showPinButton: true,
});
$("#openDdialog_product").on({
click: function (e) {
$("#dialog_product").igDialog("open");
}
});
$(document).delegate(".selector", "igdialogstatechanged", function (evt, ui) {
evt;
ui.closed
});
$(".selector").igDialog({
stateChanging : function(evt, ui) { window.location.reload(true); }
});
});
</script>
nothing happens. But if I put it this way :-
<script>
$(function () {
var width = $(window).width > 1120 ? 1100 : 1020,
height = $(window).width > 780 ? 740 : 740;
$("#openDdialog_produkt").igButton({ labelText: "Produkt" });
$("#dialog_produkt").igDialog({
state: "closed",
autoOpen: false,
modal: true,
height: height,
width: width,
headerText: "Produkt",
showMinimizeButton: true,
showMaximizeButton: true,
showPinButton: true,
stateChanging : function(evt, ui) { window.location.reload(true); }
});
$("#openDdialog_produkt").on({
click: function (e) {
$("#dialog_produkt").igDialog("open");
}
});
});
</script>
the igDialog window closed immediately and the parent window is reloading.
Can anyone look at it and give me a hint or correct it?
Thank you very much