Remove anchor replacement in active_file.filename
Previously, this replacement was required, but it is no longer (since we are not using some form of direct user-input).
This commit is contained in:

committed by
Sebastian Serth

parent
21e0784af5
commit
6d62dfc3de
@ -66,7 +66,7 @@ var CodeOceanEditor = {
|
||||
event.preventDefault();
|
||||
const initiator = $(event.target.closest("button"));
|
||||
let message = initiator.data('message-confirm');
|
||||
message = message.replace('%{filename}', CodeOceanEditor.active_file.filename.replace(/#$/, ''))
|
||||
message = message.replace('%{filename}', CodeOceanEditor.active_file.filename)
|
||||
if (confirm(message)) {
|
||||
this.resetCode(initiator, true); // delete only active file
|
||||
}
|
||||
|
Reference in New Issue
Block a user