Save action working again :).

This commit is contained in:
Paulo Veiga
2011-10-02 14:47:54 -03:00
parent a994099397
commit f3af50740c
11 changed files with 152 additions and 261 deletions

View File

@@ -198,8 +198,10 @@ mindplot.XMLMindmapSerializer_Pela = new Class({
return relationDom;
},
loadFromDom : function(dom) {
$assert(dom, "Dom can not be null");
loadFromDom : function(dom, mapId) {
$assert(dom, "dom can not be null");
$assert(mapId, "mapId can not be null");
var rootElem = dom.documentElement;
// Is a wisemap?.
@@ -230,6 +232,7 @@ mindplot.XMLMindmapSerializer_Pela = new Class({
}
}
this._idsMap = null;
mindmap.setId(mapId);
return mindmap;
},