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) {