Implement discard button.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-07 20:52:09 -03:00
parent ae9f05dd05
commit 4de8eb17ec
4 changed files with 18 additions and 10 deletions

View File

@@ -34,6 +34,12 @@ mindplot.widget.IMenu = new Class({
});
},
discard: function() {
var persistenceManager = mindplot.PersistenceManager.getInstance();
var mindmap = designer.getMindmap();
persistenceManager.discard(mindmap.getId());
},
save:function (saveElem, designer, saveHistory) {
// Load map content ...
var mindmap = designer.getMindmap();
@@ -64,4 +70,4 @@ mindplot.widget.IMenu = new Class({
}
});
}
})
});