diff --git a/web/edit.css b/web/edit.css index f5ba732c4b8c8537776873066f2a0a622b424d3a..582c5b5806c75dfe77f7f5b0ed3daddbca558afb 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 dd3cf0562441ec79fbf447162ff4ca9691f3f6a4..185a9dd062c73ced406656434e29fb9153829381 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"); } }