fix view history of maps

This commit is contained in:
Claudio Barril 2014-09-09 13:50:17 -03:00
parent 5b7bbf2e72
commit b9b3eb43f7
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ mindplot.LocalStorageManager = new Class({
if (xml == null || this.forceLoad) { if (xml == null || this.forceLoad) {
$.ajax({ $.ajax({
url: this.documentUrl.replace("{id}", mapId), url: this.documentUrl.replace("{id}", mapId),
headers:{"Content-Type":"text/plain","Accept":"application/xml"},
type:'get', type:'get',
dataType: "text", dataType: "text",
async: false, async: false,

View File

@ -50,7 +50,7 @@
); );
</c:if> </c:if>
<c:if test="${memoryPersistence || readOnlyMode}"> <c:if test="${memoryPersistence || readOnlyMode}">
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);
</c:if> </c:if>
var userOptions = ${mindmap.properties}; var userOptions = ${mindmap.properties};