Add error dialog for map error during loading.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-07 21:17:19 -03:00
parent 4de8eb17ec
commit 8a4dee47f2
5 changed files with 94 additions and 70 deletions

View File

@@ -447,7 +447,7 @@ mindplot.Designer = new Class({
$assert(mindmapModel, "mindmapModel can not be null");
this._mindmap = mindmapModel;
// try {
try {
// Init layout manager ...
var size = {width:25,height:25};
var layoutManager = new mindplot.layout.LayoutManager(mindmapModel.getCentralTopic().getId(), size);
@@ -484,9 +484,9 @@ mindplot.Designer = new Class({
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
this.fireEvent('loadSuccess');
// } catch(e) {
// this.fireEvent('loadError', e);
// }
} catch(e) {
this.fireEvent('loadError', e);
}
},
getMindmap : function() {