From be45483df9cd8eeb7a5f331934fc24ccd93ddd30 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Wed, 30 Nov 2022 21:53:54 -0500 Subject: [PATCH] tweaks to save logic --- wwwroot/js/site.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 0fb38ad..7f62fd2 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -22,6 +22,7 @@ $(function () { + // save after half-second delay after typing var timer = null; $('textarea').keyup(function () { clearTimeout(timer); @@ -31,9 +32,7 @@ $(function () { }); // 20 second interval - setInterval(saveContent, 60000); - - //onbeforeunload = saveContent(); + // setInterval(saveContent, 60000); // support tab key in textarea $('textarea').keydown(function (e) {