removing svg from save operation

This commit is contained in:
Pablo Luna
2011-03-31 15:16:45 +01:00
parent 6cc4d2eaff
commit c4021bf3c4
13 changed files with 32 additions and 63 deletions

View File

@@ -352,9 +352,8 @@ mindplot.MindmapDesigner.prototype.save = function(onSavedHandler, saveHistory)
var persistantManager = mindplot.PersistanceManager;
var mindmap = this._mindmap;
var xmlChart = this._workspace.dumpNativeChart();
var properties = {zoom:this._zoom};
persistantManager.save(mindmap, xmlChart, properties, onSavedHandler, saveHistory);
persistantManager.save(mindmap, properties, onSavedHandler, saveHistory);
this._fireEvent("save", {type:saveHistory});
// Refresh undo state...

View File

@@ -18,10 +18,9 @@
mindplot.PersistanceManager = {};
mindplot.PersistanceManager.save = function(mindmap, xmlChart, editorProperties, onSavedHandler,saveHistory)
mindplot.PersistanceManager.save = function(mindmap, editorProperties, onSavedHandler,saveHistory)
{
core.assert(mindmap, "mindmap can not be null");
core.assert(xmlChart, "xmlChart can not be null");
core.assert(editorProperties, "editorProperties can not be null");
var mapId = mindmap.getId();
@@ -31,7 +30,7 @@ mindplot.PersistanceManager.save = function(mindmap, xmlChart, editorProperties,
var xmlMapStr = core.Utils.innerXML(xmlMap);
var pref = Json.toString(editorProperties);
window.MapEditorService.saveMap(mapId, xmlMapStr, xmlChart, pref,saveHistory,
window.MapEditorService.saveMap(mapId, xmlMapStr, pref,saveHistory,
{
callback:function(response) {