mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
parsing text response manually from ajax request
This commit is contained in:
parent
8263b1abeb
commit
9afb13b02f
@ -38,10 +38,10 @@ mindplot.LocalStorageManager = new Class({
|
||||
$.ajax({
|
||||
url: this.documentUrl.replace("{id}", mapId),
|
||||
type:'get',
|
||||
dataType: "xml",
|
||||
async:false,
|
||||
success: function (responseText) {
|
||||
xml = responseText;
|
||||
dataType: "text",
|
||||
async: false,
|
||||
success:function (response) {
|
||||
xml = response;
|
||||
}
|
||||
});
|
||||
// If I could not load it from a file, hard code one.
|
||||
@ -50,8 +50,7 @@ mindplot.LocalStorageManager = new Class({
|
||||
}
|
||||
}
|
||||
|
||||
var parser = new DOMParser();
|
||||
return parser.parseFromString(xml, 'text/xml');
|
||||
return jQuery.parseXML(xml);
|
||||
},
|
||||
|
||||
unlockMap:function (mindmap) {
|
||||
|
Loading…
Reference in New Issue
Block a user