destroy and remove dialogs after they're closed - otherwise they remain in the DOM, hidden but there
fix #288
This commit is contained in:
parent
b5381603b8
commit
ac9312d6f7
@ -167,6 +167,9 @@ window.dialog = function(options) {
|
|||||||
|
|
||||||
window.DIALOG_COUNT--;
|
window.DIALOG_COUNT--;
|
||||||
console.log('window.dialog: ' + $(this).data('id') + ' (' + $(this).dialog('option', 'title') + ') closed. ' + window.DIALOG_COUNT + ' remain.');
|
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() {
|
focus: function() {
|
||||||
if($(this).data('focusCallback')) {
|
if($(this).data('focusCallback')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user