Skip to content

Commit

Permalink
Destroy modal dialog after callback
Browse files Browse the repository at this point in the history
Fixes tyrasd#528. Closes tyrasd#529.
  • Loading branch information
simon04 authored and erictheise committed Dec 31, 2023
1 parent 5271b93 commit 120cebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ var ide = new (function () {
.click(
(function (callback) {
return function () {
$(element).remove();
if (callback) {
callback();
}
// destroy modal dialog after callback, see #528
$(element).remove();
};
})(button.callback)
)
Expand Down

0 comments on commit 120cebf

Please sign in to comment.