]> lifelog.hopto.org Git - LifeLog.git/commitdiff
On log edit wasn't stripping encaps. log div.
authorWill Budicm <redacted>
Fri, 25 Dec 2020 09:30:17 +0000 (20:30 +1100)
committerWill Budicm <redacted>
Fri, 25 Dec 2020 09:30:17 +0000 (20:30 +1100)
htdocs/cgi-bin/wsrc/main.js

index 214989a42876664162bfc2693425e41ff5fd039a..532b5ccd9705e0c2bcb6ed7d5ad11bc1dd014a6c 100644 (file)
@@ -502,6 +502,8 @@ function edit(row) {
     } else {
         var txt = log.html();
         txt = txt.replace(/<br>/g,"\n");
+        txt = txt.replace(/^<div class=\"log\">/,"");
+        txt = txt.replace(/<\/div>$/,"");
         $("#el").val(decodeToText(txt));
     }