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

FIX: lost focus on unchanged cell in structure editor clearing neighbor, close #315

parent 9734bece
Branches
No related merge requests found
......@@ -276,6 +276,11 @@ $(document).ready(function () {
e => setNewRateAndControl($(e.target).turnOff(), oldMaxRate));
function setNewRateAndControl($rateInput, oldMaxRate) {
// http://gitlab.mmcs.sfedu.ru/it-lab/grade/issues/315
if ($rateInput.val() === oldMaxRate) {
$rateInput.turnOn();
return;
}
let $moduleHeads = $('.moduleHead'),
currentControl = $moduleHeads.children('.currentControl').sum(true),
landmarkControl = $moduleHeads.children('.landmarkControl').sum(true);
......
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