changeset 2516:22673a6cfcfb

Update on save key
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 24 Oct 2016 11:10:42 +0100
parents 913d7c132ab6
children cbec4dd5a1e9 dd8f80f40a57 bf17cc19c1c0
files js/core.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Mon Oct 24 11:07:45 2016 +0100
+++ b/js/core.js	Mon Oct 24 11:10:42 2016 +0100
@@ -3139,6 +3139,7 @@
                     this.key = xml.getAllElementsByTagName("key")[0].textContent;
                     this.parent.root.setAttribute("key", this.key);
                     this.parent.root.setAttribute("state", "empty");
+                    this.update();
                     return;
                 } else if (xml.getElementsByTagName("state")[0].textContent == "ERROR") {
                     this.key = null;