Skip to content
Snippets Groups Projects
Commit 568cf03b authored by Антон Шалимов's avatar Антон Шалимов
Browse files

fix

parent 28dc1f94
Branches
Tags
No related merge requests found
......@@ -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');
......
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