From 6716a76094a97ea3d347f2c622552f2d539545c2 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 13 Mar 2025 16:22:14 +0100 Subject: [PATCH] slight js to update cursor pos upon save --- note.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/note.php b/note.php index aa82522..c1f06b9 100644 --- a/note.php +++ b/note.php @@ -78,7 +78,12 @@ } else { - header("Location: note.php?title=" . $title); + $noteurl = "Location: note.php?title=" . $title; + if (isset($_POST['cursorpos'])) + { + $noteurl .= '&cursorpos=' . $_POST['cursorpos']; + } + header($noteurl); exit; } } @@ -130,17 +135,29 @@ + - +
> -
+
+