From 568cf03b039867e1b48ab5339890b4c7bd5f6f8b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A8=D0=B0=D0=BB=D0=B8?=
 =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= <solidovic@gmail.com>
Date: Mon, 22 Sep 2014 18:25:41 +0400
Subject: [PATCH] fix

---
 ~dev_rating/media/js/discipline/EditSettings.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/~dev_rating/media/js/discipline/EditSettings.js b/~dev_rating/media/js/discipline/EditSettings.js
index b0db67a92..654d7e0e2 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');
-- 
GitLab