Fix missing confirmation when deleting a user-generated file
This commit is contained in:

committed by
Sebastian Serth

parent
bf0e6149da
commit
43f93af575
@ -49,7 +49,7 @@ var CodeOceanEditor = {
|
||||
|
||||
confirmDestroy: function (event) {
|
||||
event.preventDefault();
|
||||
if (confirm($(event.target).data('message-confirm'))) {
|
||||
if (confirm(I18n.t('shared.confirm_destroy'))) {
|
||||
this.destroyFile();
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user