diff --git a/~dev_rating/media/js/discipline/EditSettings.js b/~dev_rating/media/js/discipline/EditSettings.js index b0db67a920c8df34a38c6d08e041a2e425586e89..654d7e0e24435cb452bfff406f0844979305a7ec 100644 --- a/~dev_rating/media/js/discipline/EditSettings.js +++ b/~dev_rating/media/js/discipline/EditSettings.js @@ -60,6 +60,8 @@ $(function() { // Рзменение контроля $('input.ExamType').change(function(){ var thisObj = $(this); + thisObj.parent().children('.ExamType[value="exam"]').attr("disabled", true); + thisObj.parent().children('.ExamType[value="credit"]').attr("disabled", true); $.post( URLdir + 'handler/map/ChangeDisciplineControl', { @@ -72,6 +74,8 @@ $(function() { EventInspector_ShowMsg('Форма контроля изменена', 'success'); else if (data.success > 0) { EventInspector_ShowMsg('Превышено максимальное РєРѕР»-РІРѕ баллов', 'error'); + thisObj.parent().children('.ExamType[value="exam"]').removeAttr('disabled'); + thisObj.parent().children('.ExamType[value="credit"]').removeAttr('disabled'); thisObj.parent().children('.ExamType[value="credit"]').prop('checked', true); } else EventInspector_ShowMsg('Ошибка: Рзменение формы контроля', 'error');