# HG changeset patch # User robcast # Date 1424459827 -3600 # Node ID c207fae4f14a03d0bab2fa251dddd97f5e50158e # Parent ddc0864494634fc713fb9511c3a9bfe1bd9819b2 fix annotations disappearing after changing user. diff -r ddc086449463 -r c207fae4f14a webapp/src/main/webapp/jquery/jquery.digilib.annotator.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Mon Feb 16 19:44:54 2015 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Fri Feb 20 20:17:07 2015 +0100 @@ -103,14 +103,13 @@ // get new token auth.token = null; auth._unsafeToken = null; - auth.requestToken(); // save new token in cookie auth.withToken(function (tkn) { data.dlOpts.annotationToken = auth.token; fn.storeOptions(data); // clear annotations data.annotations = []; - renderAnnotations(data); + annotator.plugins.Store.annotations = []; // reload annotations annotator.plugins.Store.pluginInit(); });