diff --git a/src/assets/js/parts/wish.js b/src/assets/js/parts/wish.js index fca41544..5a3f7de2 100644 --- a/src/assets/js/parts/wish.js +++ b/src/assets/js/parts/wish.js @@ -228,6 +228,10 @@ $(function () { wish_edit .modal({ 'onApprove' : wishSave, + 'onHidden' : function() { + $(this).modal('destroy'); + $(this).remove(); + } }) .modal('show') .addClass(wish_edit_size);