Skip to content
Snippets Groups Projects
Commit 0bbe2730 authored by Anton Bagliy's avatar Anton Bagliy
Browse files

ADD: confirm rate add when discipline is not locked yet #386

parent 56f7d439
Branches issue386_chineese_warning
No related merge requests found
......@@ -373,6 +373,15 @@ class Rating {
if (scoreInputVal === oldInputVal) return;
if (!this.settings.discipline.isLocked) {
if (window.confirm("Если выставить первый балл, то невозможно будет редактировать учебную карту дисциплины. Продолжить?")) {
this.settings.discipline.isLocked = 1;
} else {
$cell.children('input').val(oldInputVal);
return;
}
}
let rate = Base.parseRateForCell($cell, true);
let successText;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment