mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
This version uses Rollup instead of WebPack.
Due to that the code is smaller and has changes to prevent Circular Dependencies
This commit is contained in:
parent
5e63ade9dd
commit
ad8fd8879b
49 changed files with 595 additions and 577 deletions
9
dev/External/Admin/ko.js
vendored
9
dev/External/Admin/ko.js
vendored
|
|
@ -1,6 +1,6 @@
|
|||
import { SaveSettingsStep } from 'Common/Enums';
|
||||
|
||||
const ko = window.ko;
|
||||
import { pInt } from 'Common/Utils';
|
||||
import ko from 'External/ko';
|
||||
|
||||
ko.bindingHandlers.saveTrigger = {
|
||||
init: (element) => {
|
||||
|
|
@ -38,11 +38,10 @@ ko.extenders.idleTrigger = (target) => {
|
|||
};
|
||||
|
||||
ko.extenders.posInterer = (target, defaultVal) => {
|
||||
const Utils = require('Common/Utils'),
|
||||
result = ko.computed({
|
||||
const result = ko.computed({
|
||||
read: target,
|
||||
write: newValue => {
|
||||
let val = Utils.pInt(newValue.toString(), defaultVal);
|
||||
let val = pInt(newValue.toString(), defaultVal);
|
||||
if (0 >= val) {
|
||||
val = defaultVal;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue