diff --git a/~dev_rating/media/js/discipline/EditSettings.js b/~dev_rating/media/js/discipline/EditSettings.js index a4342a9355e9a9767b8299585b2b627d18e6e0a9..1ab7844ce601c275229923f2a0e0443770d4014b 100644 --- a/~dev_rating/media/js/discipline/EditSettings.js +++ b/~dev_rating/media/js/discipline/EditSettings.js @@ -132,6 +132,9 @@ $(function() { { var thisObj = $(this); var value = parseInt($(this).val()); + if (value === LectionCount) + return; + $(this).prop('disabled', true); $.post( URLdir + 'handler/map/ChangeDisciplineHours', @@ -160,14 +163,14 @@ $(function() { KeyDownOnlyNumber(event); }); - - ; // Рзменение практических часов $('input.InputPracticeCount').focusout(function() { var thisObj = $(this); var value = parseInt($(this).val()); + if (value === LectionCount) + return; $(this).prop('disabled', true); $.post( URLdir + 'handler/map/ChangeDisciplineHours',