Commit 35966bf2 authored by alexpott's avatar alexpott

Issue #2413709 by geertvd, Lendude: Javascript error after using jQuery UI...

Issue #2413709 by geertvd, Lendude: Javascript error after using jQuery UI Dialog close button in Views UI
parent 7bc8b517
......@@ -34,6 +34,13 @@
// Force focus on the modal when the behavior is run.
$dialog.dialog('widget').trigger('focus');
}
var originalClose = settings.dialog.close;
// Overwrite the close method to remove the dialog on closing.
settings.dialog.close = function(event) {
originalClose.apply(settings.dialog, arguments);
$(event.target).remove();
};
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment