From 3cf9dacbf81cf5080ee51b794f9b9e202187f1ea Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 25 Nov 2018 21:25:58 -0700 Subject: [PATCH] Apply note color in editor --- pages/editnote.php | 16 ++++++++++++++++ static/js/editnote.js | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pages/editnote.php b/pages/editnote.php index c620953..19b29ec 100644 --- a/pages/editnote.php +++ b/pages/editnote.php @@ -24,6 +24,22 @@ if ($note->getOwnerID() != $_SESSION['uid']) { $note->saveNote(); ?> + +
diff --git a/static/js/editnote.js b/static/js/editnote.js index 1cd4fb5..fc749c9 100644 --- a/static/js/editnote.js +++ b/static/js/editnote.js @@ -44,5 +44,5 @@ var easymde = new EasyMDE({ }); var autosaveTimer = setInterval(function () { - $("#noteform").submit(); + //$("#noteform").submit(); }, 10 * 1000); \ No newline at end of file