destroy and remove dialogs after they're closed - otherwise they remain in the DOM, hidden but there

fix #288
This commit is contained in:
Jon Atkins 2013-05-18 18:02:13 +01:00
parent b5381603b8
commit ac9312d6f7

View File

@ -167,6 +167,9 @@ window.dialog = function(options) {
window.DIALOG_COUNT--;
console.log('window.dialog: ' + $(this).data('id') + ' (' + $(this).dialog('option', 'title') + ') closed. ' + window.DIALOG_COUNT + ' remain.');
// remove from DOM and destroy
$(this).dialog('destroy').remove();
},
focus: function() {
if($(this).data('focusCallback')) {