From c2da4a9385adb94918de83b914854bf76d55f74f Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Wed, 26 Nov 2014 00:14:10 +0300 Subject: [PATCH] fix --- .../js/discipline/EditStructureLocked.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ~dev_rating/media/js/discipline/EditStructureLocked.js diff --git a/~dev_rating/media/js/discipline/EditStructureLocked.js b/~dev_rating/media/js/discipline/EditStructureLocked.js new file mode 100644 index 000000000..cbe17692a --- /dev/null +++ b/~dev_rating/media/js/discipline/EditStructureLocked.js @@ -0,0 +1,23 @@ +var $ = jQuery; +$(function() { + + $("div.moduleList").on('keydown', 'input.inputName', function(event) { + event.preventDefault(); + }); + + $("div.moduleList").on('click focus', 'input.inputName', function(event) { + this.blur(); + event.preventDefault(); + }); + + $("div.moduleList").on('keydown', 'input.inputCredit', function(event) { + event.preventDefault(); + }); + + $("div.moduleList").on('click focus', 'input.inputCredit', function(event) { + this.blur(); + event.preventDefault(); + }); + + +}); -- GitLab