fix local storage manager
parent
2166dd9504
commit
aaf8be2f70
|
@ -37,8 +37,8 @@ mindplot.LocalStorageManager = new Class({
|
|||
if (xml == null || this.forceLoad) {
|
||||
$.ajax({
|
||||
url: this.documentUrl.replace("{id}", mapId),
|
||||
headers:{"Content-Type":"text/plain","Accept":"application/xml"},
|
||||
method:'get',
|
||||
type:'get',
|
||||
dataType: "xml",
|
||||
async:false,
|
||||
success: function (responseText) {
|
||||
xml = responseText;
|
||||
|
@ -49,7 +49,9 @@ mindplot.LocalStorageManager = new Class({
|
|||
throw new Error("Map could not be loaded");
|
||||
}
|
||||
}
|
||||
return xml;
|
||||
|
||||
var parser = new DOMParser();
|
||||
return parser.parseFromString(xml, 'text/xml');
|
||||
},
|
||||
|
||||
unlockMap:function (mindmap) {
|
||||
|
|
Loading…
Reference in New Issue