summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/widgets/memo.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/app/common/views/widgets/memo.vue b/src/client/app/common/views/widgets/memo.vue
index 8a037f03dc..b3b668a9ad 100644
--- a/src/client/app/common/views/widgets/memo.vue
+++ b/src/client/app/common/views/widgets/memo.vue
@@ -25,7 +25,8 @@ export default define({
data() {
return {
text: null,
- changed: false
+ changed: false,
+ timeoutId: null
};
},
@@ -45,6 +46,8 @@ export default define({
onChange() {
this.changed = true;
+ clearTimeout(this.timeoutId);
+ this.timeoutId = setTimeout(this.saveMemo, 1000);
},
saveMemo() {