Commit f42a2f78 authored by Tristan Cavelier's avatar Tristan Cavelier

jio dashboard save and load description added

parent dade6edb
......@@ -21,8 +21,10 @@
<button onclick="fillLocalDescription()">Local</button>
<button onclick="fillDavDescription()">WebDAV</button>
<button onclick="fillERP5Description()">ERP5</button>
<button onclick="fillCustomDescription()">Custom</button>
<button onclick="fillCustomDescription()">Custom</button> -
<button onclick="fillLastDescription()">Last</button>
<button onclick="loadDescription()">Load</button>
<button onclick="saveDescription()">Save</button>
</td>
</tr>
<tr>
......@@ -177,6 +179,16 @@ function fillLastDescription() {
select("#storagedescription").value =
localStorage.getItem("last_jio_description") || "{}";
}
function saveDescription() {
localStorage.setItem(
"saved_jio_description",
select("#storagedescription").value
);
}
function loadDescription() {
select("#storagedescription").value =
localStorage.getItem("saved_jio_description") || "{}";
}
fillLastDescription();
function createJIO() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment