mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
fix save not working for mindmap (bad request)
This commit is contained in:
parent
f6464b6e37
commit
4aa0d22ebe
@ -42,7 +42,7 @@ mindplot.PersistenceManager = new Class({
|
|||||||
var domMap = serializer.toXML(mindmap);
|
var domMap = serializer.toXML(mindmap);
|
||||||
var mapXml = core.Utils.innerXML(domMap);
|
var mapXml = core.Utils.innerXML(domMap);
|
||||||
|
|
||||||
var pref = (editorProperties);
|
var pref = JSON.stringify(editorProperties);
|
||||||
try {
|
try {
|
||||||
this.saveMapXml(mapId, mapXml, pref, saveHistory, events, sync);
|
this.saveMapXml(mapId, mapXml, pref, saveHistory, events, sync);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -57,11 +57,11 @@ mindplot.RESTPersistenceManager = new Class({
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: this.documentUrl.replace("{id}", mapId) + "?" + query,
|
url: this.documentUrl.replace("{id}", mapId) + "?" + query,
|
||||||
headers:{"Content-Type":"application/json; charset=utf-8", "Accept":"application/json"},
|
type:'put',
|
||||||
method:'put',
|
dataType:"json",
|
||||||
|
data: JSON.stringify(data),
|
||||||
|
contentType:"application/json; charset=utf-8",
|
||||||
async:!sync,
|
async:!sync,
|
||||||
dataType: "json",
|
|
||||||
data: data,
|
|
||||||
|
|
||||||
success: function (data, textStatus, jqXHRresponseText) {
|
success: function (data, textStatus, jqXHRresponseText) {
|
||||||
persistence.timestamp = jqXHRresponseText;
|
persistence.timestamp = jqXHRresponseText;
|
||||||
|
Loading…
Reference in New Issue
Block a user