Prevent non-numeric input in contesting-serial fields
这个提交包含在:
当前提交
55d24cd52b
共有 1 个文件被更改,包括 3 次插入 和 3 次删除
|
|
@ -88,10 +88,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 () {
|
$(function () {
|
||||||
$('#exch_serial_r').on('keypress', function (e) {
|
$('#exch_serial_r, #exch_serial_s').on('keypress', function (e) {
|
||||||
if (e.which == 32) {
|
if (e.key.charCodeAt(0) < 48 || e.key.charCodeAt(0) > 57) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用