Add file name to reset this file action
This commit is contained in:
@ -59,7 +59,9 @@ configureEditors: function () {
|
|||||||
|
|
||||||
confirmResetActiveFile: function (event) {
|
confirmResetActiveFile: function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (confirm($('#start-over-active-file').data('message-confirm'))) {
|
let message = $('#start-over-active-file').data('message-confirm');
|
||||||
|
message = message.replace('%{filename}', CodeOceanEditor.active_file.filename.replace(/#$/,''))
|
||||||
|
if (confirm(message)) {
|
||||||
this.resetCode(true); // delete only active file
|
this.resetCode(true); // delete only active file
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -280,7 +280,7 @@ de:
|
|||||||
collapse_action_sidebar: Aktions-Leiste Einklappen
|
collapse_action_sidebar: Aktions-Leiste Einklappen
|
||||||
collapse_output_sidebar: Ausgabe-Leiste Einklappen
|
collapse_output_sidebar: Ausgabe-Leiste Einklappen
|
||||||
confirm_start_over: Wollen Sie wirklich von vorne anfangen? Ihr kompletter Fortschritt wird entfernt. Diese Aktion kann nicht rückgängig gemacht werden.
|
confirm_start_over: Wollen Sie wirklich von vorne anfangen? Ihr kompletter Fortschritt wird entfernt. Diese Aktion kann nicht rückgängig gemacht werden.
|
||||||
confirm_start_over_active_file: Wollen Sie wirklich den Inhalt dieser Datei löschen? Diese Aktion kann nicht rückgängig gemacht werden.
|
confirm_start_over_active_file: Wollen Sie wirklich den Inhalt der ausgewählten Datei '%{filename}' löschen? Diese Aktion kann nicht rückgängig gemacht werden.
|
||||||
confirm_submit: Wollen Sie Ihren Code wirklich zur Bewertung abgeben?
|
confirm_submit: Wollen Sie Ihren Code wirklich zur Bewertung abgeben?
|
||||||
create_file: Neue Datei
|
create_file: Neue Datei
|
||||||
depleted: Alle Ausführungsausgebungen sind momentan in Benutzung. Probiere es später nochmal.
|
depleted: Alle Ausführungsausgebungen sind momentan in Benutzung. Probiere es später nochmal.
|
||||||
|
@ -280,7 +280,7 @@ en:
|
|||||||
collapse_action_sidebar: Collapse Action Sidebar
|
collapse_action_sidebar: Collapse Action Sidebar
|
||||||
collapse_output_sidebar: Collapse Output Sidebar
|
collapse_output_sidebar: Collapse Output Sidebar
|
||||||
confirm_start_over: Do you really want to start over? Your complete progress will be reset. You cannot undo this action.
|
confirm_start_over: Do you really want to start over? Your complete progress will be reset. You cannot undo this action.
|
||||||
confirm_start_over_active_file: Do you really want to reset this file? You cannot undo this action.
|
confirm_start_over_active_file: Do you really want to reset the active file '%{filename}'? You cannot undo this action.
|
||||||
confirm_submit: Do you really want to submit your code for grading?
|
confirm_submit: Do you really want to submit your code for grading?
|
||||||
create_file: New File
|
create_file: New File
|
||||||
depleted: All execution environments are busy. Please try again later.
|
depleted: All execution environments are busy. Please try again later.
|
||||||
|
Reference in New Issue
Block a user