diff --git a/~dev_rating/media/css/discipline.css b/~dev_rating/media/css/discipline.css index 7b1efcb3e2aa695573d7589bc2a3f179b4e3d4cf..b1d63dd382bc8a495a8e6791ee00ebf55441bdf2 100644 --- a/~dev_rating/media/css/discipline.css +++ b/~dev_rating/media/css/discipline.css @@ -290,7 +290,7 @@ cursor: pointer; font-size: 14px; } - + /* Прикрипление групп */ .ChangeStudyGroupDIV{ margin: 10px 0 5px 0; diff --git a/~dev_rating/media/js/rating.js b/~dev_rating/media/js/rating.js index 2fc5b360a0e69ee70aff1f32b39cc2b5d12787d1..d4eee2562dddbda104de77a2535bdbddd01c6003 100644 --- a/~dev_rating/media/js/rating.js +++ b/~dev_rating/media/js/rating.js @@ -4,7 +4,7 @@ $(function() { var isFocusCell = false; // Стоит фокус или нет var oldRateCell; - // Ставим фокус + // Ставим подстветку function tdFocus(thisObj, thisClass){ tdClass = thisClass.split(' '); oldRateCell = thisObj.children('input').val(); @@ -16,7 +16,7 @@ $(function() { }); } - // Убираем фокус + // Убираем подстветку function tdUnFocus(thisObj){ oldRateCell = undefined; $('.'+tdClass[0]).each(function(){ @@ -29,6 +29,7 @@ $(function() { function Rating(thisObj, OldRate) { // Здесь thisObj - div rateCell, а не input, который является дочкой + thisObj.children('input').attr("disabled", true); // Получаем подмодуль var reg = /col_\d+/; var col = ''+reg.exec(thisObj.attr('class')); @@ -60,6 +61,7 @@ $(function() { EventInspector_ShowMsg('Балл добавлен/изменен', 'success'); } else EventInspector_ShowMsg('Не удалось добавить/изменить балл', 'error'); + thisObj.children('input').removeAttr('disabled'); } ); } @@ -69,6 +71,7 @@ $(function() { else thisObj.children('input').val('0'); EventInspector_ShowMsg('Текущий балл превышает максимальный для данного модуля', 'error'); + thisObj.children('input').removeAttr('disabled'); } }