Skip to content

Commit ab8ece0

Browse files
committed
ide modal messages fix
Signed-off-by: MarioRadu <[email protected]>
1 parent 9bef76d commit ab8ece0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

public/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App/assets/js/components/_admin.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ $(document).ready(() => {
113113
});
114114
});
115115

116-
adminDeleteModal.on('show.bs.modal', 'hidden.bs.modal', function () {
116+
adminDeleteModal.on('show.bs.modal', function () {
117117
adminDeleteModal.find('#confirmation').prop('checked', false);
118+
adminDeleteModal.find('.modal-messages').html('');
119+
});
120+
121+
adminDeleteModal.on('hide.bs.modal', function () {
122+
adminDeleteModal.find('#confirmation').prop('checked', false);
123+
adminDeleteModal.find('.modal-messages').html('');
118124
});
119125
});

0 commit comments

Comments
 (0)