Prevent non-numeric entries in contesting-serial fields
这个提交包含在:
父节点
40dc26c120
当前提交
f527be0af0
共有 1 个文件被更改,包括 3 次插入 和 3 次删除
|
|
@ -94,10 +94,10 @@ $(function () {
|
|||
});
|
||||
});
|
||||
|
||||
// We don't want spaces to be written in serial
|
||||
// We don't want anything but numbers to be written in serial
|
||||
$(function () {
|
||||
$('#exch_serial_r').on('keypress', function (e) {
|
||||
if (e.which == 32) {
|
||||
$('#exch_serial_r, #exch_serial_s').on('keypress', function (e) {
|
||||
if (e.key.charCodeAt(0) < 48 || e.key.charCodeAt(0) > 57) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
正在加载…
在新工单中引用