From 1fd9adf18c7ae50dcbbaf1447152017a6ddbf23a Mon Sep 17 00:00:00 2001 From: Cvetan Stefanovski Date: Sat, 8 Nov 2014 13:38:50 +0100 Subject: [PATCH] Fixed a bug where dialog was not properly removed when closed through the 'X' button --- InterfaceDesigner-main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/InterfaceDesigner-main.js b/InterfaceDesigner-main.js index 71f8669..9964711 100644 --- a/InterfaceDesigner-main.js +++ b/InterfaceDesigner-main.js @@ -3415,7 +3415,11 @@ var ModalDialog = Class.$extend( minHeight : this.height, modal : true, closeOnEscape : true, - buttons : this.buttons + buttons : this.buttons, + close : function() + { + $(this).remove(); + } }); this.element.dialog("open");