mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-03 19:52:19 +03:00
Cleanup knockout commands and replaced EventKeyCode with native KeyboardEvent.key
This commit is contained in:
parent
d06fed09d6
commit
7ac8143f34
9 changed files with 87 additions and 118 deletions
2
dev/External/Admin/ko.js
vendored
2
dev/External/Admin/ko.js
vendored
|
|
@ -41,7 +41,7 @@ ko.extenders.posInterer = (target, defaultVal) => {
|
|||
const Utils = require('Common/Utils'),
|
||||
result = ko.computed({
|
||||
read: target,
|
||||
write: (newValue) => {
|
||||
write: newValue => {
|
||||
let val = Utils.pInt(newValue.toString(), defaultVal);
|
||||
if (0 >= val) {
|
||||
val = defaultVal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue