tweaks to save logic

This commit is contained in:
Ryan Peters 2022-11-30 21:53:54 -05:00
parent 252abae03d
commit be45483df9

View File

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