Refactor RfC creation to prevent users from navigating

This commit is contained in:
Sebastian Serth
2023-08-17 00:25:51 +02:00
parent 08a1eb6201
commit de5bbea4a8
3 changed files with 17 additions and 9 deletions

View File

@@ -507,7 +507,7 @@ var CodeOceanEditor = {
new bootstrap.Modal($('#comment-modal')).show();
});
$('#askForCommentsButton').on('click', this.requestComments.bind(this));
$('#askForCommentsButton').one('click', this.requestComments.bind(this));
$('#closeAskForCommentsButton').on('click', function () {
bootstrap.Modal.getInstance($('#comment-modal')).hide();
});