The events on close is not intercepted.
When i close the window the message “closing” not appear in the console
$routine = ' console.log(1); jQuery("#'.$id.'").on(\'close\', function (event) { //console.log("closing..."); jQuery(".epx-destroyable").each(function(){ var type = jQuery(this).data("epx-type"); //console.log(type); jQuery(this)[type]("destroy"); }); jQuery("#'.$id.'").jqxWindow("destroy"); }); jQuery("body").append("<div id=\"'.$id.'\"><div></div> <div></div> </div>"); console.log(2); jQuery("#'.$id.'").jqxWindow('.Easypbx_Html_JsonElement::create($properties).'); console.log(3); jQuery("#'.$id.'").jqxWindow("setContent", "Loading..."); console.log(4); (function(){ jQuery.ajax({ dataType: "html", url: "'.$url.'", success: function (data) {jQuery("#'.$id.'").jqxWindow("setContent", data);}, error: function () {jQuery("#'.$id.'").jqxWindow("setContent", "Error");} }); jQuery("#'.$id.'").jqxWindow("open"); jQuery("#'.$id.'").jqxWindow("show"); })(); console.log(5);