From b9b3eb43f71d20e4ce40846f5f8a535ce5e20284 Mon Sep 17 00:00:00 2001 From: Claudio Barril Date: Tue, 9 Sep 2014 13:50:17 -0300 Subject: [PATCH] fix view history of maps --- mindplot/src/main/javascript/LocalStorageManager.js | 1 + wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/LocalStorageManager.js b/mindplot/src/main/javascript/LocalStorageManager.js index 63017448..2f04f163 100644 --- a/mindplot/src/main/javascript/LocalStorageManager.js +++ b/mindplot/src/main/javascript/LocalStorageManager.js @@ -37,6 +37,7 @@ mindplot.LocalStorageManager = new Class({ if (xml == null || this.forceLoad) { $.ajax({ url: this.documentUrl.replace("{id}", mapId), + headers:{"Content-Type":"text/plain","Accept":"application/xml"}, type:'get', dataType: "text", async: false, diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp index 8b675080..0be63b7f 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp @@ -50,7 +50,7 @@ ); - options.persistenceManager = new mindplot.LocalStorageManager("c/restful/maps/{id}${hid!=null?'/':''}${hid!=null?hid:''}/document/xml${principal!=null?'':'-pub'}",true); + options.persistenceManager = new mindplot.LocalStorageManager("c/restful/maps/{id}${hid!=null?'/':''}${hid!=null?hid:''}/document/xml${principal!=null?'':'-pub'}",true); var userOptions = ${mindmap.properties};