From 06fe4fa136c2396da8156eb961008db670cf6670 Mon Sep 17 00:00:00 2001
From: Frank Steinberg <steinberg@ibr.cs.tu-bs.de>
Date: Thu, 10 Oct 2019 14:40:42 +0200
Subject: [PATCH] Minor.

---
 web/edit.css | 5 ++++-
 web/edit.js  | 7 ++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/web/edit.css b/web/edit.css
index f5ba732..582c5b5 100644
--- a/web/edit.css
+++ b/web/edit.css
@@ -119,7 +119,10 @@ styleguide *[source="original"] {
     background-color: #ffd0d0;
 }
 styleguide *[source="lang-file"] {
-    background-color: white;
+    background-color: #dfffdf;
+}
+styleguide *[source="this-session"] {
+    background-color: #bfffbf;
 }
 styleguide nav:not([todo="0"]) {
     background-color: #ffb0b0;
diff --git a/web/edit.js b/web/edit.js
index dd3cf05..185a9dd 100644
--- a/web/edit.js
+++ b/web/edit.js
@@ -112,14 +112,12 @@ function doedit(elem) {
 	render.innerHTML = elem.innerHTML;
     }
     editor.style.display = "block";
-    body.classList.add("fade");
     pelleditor.content.focus();
     
 }
 
 function docancel() {
     editor.style.display = "none";
-    body.classList.remove("fade");
 }
 
 function dosave() {
@@ -141,8 +139,11 @@ function dosave() {
     xhr.onreadystatechange = function() {
 	if (xhr.readyState === 4) {
 	    editor.style.display = "none";
-	    body.classList.remove("fade");
 	    editelem.innerHTML = x;
+	    editelem.setAttribute("date", "today");
+	    editelem.setAttribute("author", "you");
+	    editelem.setAttribute("addr", "local");
+	    editelem.setAttribute("source", "this-session");
 	}
     }
 
-- 
GitLab