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

@@ -157,8 +157,10 @@ mindplot.XMLMindmapSerializer_Beta = new Class({
return noteDom;
},
loadFromDom : function(dom) {
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?.
@@ -175,6 +177,7 @@ mindplot.XMLMindmapSerializer_Beta = new Class({
mindmap.addBranch(topic);
}
}
mindmap.setId(mapId);
return mindmap;
},