From 4a1a5a4adb54d1076c554da7c49fb16bfaca2d83 Mon Sep 17 00:00:00 2001 From: Silence <aracks@yandex.ru> Date: Tue, 23 Sep 2014 15:49:42 +0400 Subject: [PATCH] number input --- ~dev_rating/media/js/discipline/EditSettings.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/~dev_rating/media/js/discipline/EditSettings.js b/~dev_rating/media/js/discipline/EditSettings.js index 3bd37aa96..a4342a935 100644 --- a/~dev_rating/media/js/discipline/EditSettings.js +++ b/~dev_rating/media/js/discipline/EditSettings.js @@ -155,7 +155,13 @@ $(function() { thisObj.removeAttr('disabled'); } ); - }); + }) + .keydown(function(event) { + KeyDownOnlyNumber(event); + }); + + + ; // Рзменение практических часов $('input.InputPracticeCount').focusout(function() @@ -185,6 +191,9 @@ $(function() { thisObj.removeAttr('disabled'); } ); - }); + }) + .keydown(function(event) { + KeyDownOnlyNumber(event); + }); }); \ No newline at end of file -- GitLab