Change symblink to moootols

Add editor issue.
This commit is contained in:
Paulo Gustavo Veiga
2012-04-02 14:11:28 -03:00
parent 9f0557b851
commit f52f01a6b1
24 changed files with 411 additions and 599 deletions

View File

@@ -26,13 +26,15 @@ function buildDesigner(options) {
// Register load events ...
designer = new mindplot.Designer(options, container);
designer.addEvent('loadSuccess', function() {
window.waitDialog.close();
window.waitDialog.destroy();
window.waitDialog.close.delay(1000,window.waitDialog);
window.waitDialog = null;
});
window.onerror = function(e) {
window.waitDialog.close();
window.waitDialog.destroy();
if (window.waitDialog) {
window.waitDialog.close.delay(1000,window.waitDialog);
window.waitDialog = null;
}
errorDialog.show();
console.log(e);
};
@@ -117,12 +119,12 @@ editor.WaitDialog = new Class({
duration: 100,
transition: Fx.Transitions.Bounce.easeOut
});
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
},
onBeforeOpen: function() {
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
this.overlay.open();
this.fx.start({
'margin-top': [-200, -100],
@@ -142,7 +144,6 @@ editor.WaitDialog = new Class({
}).chain(function() {
this.fireEvent('hide');
this.wrapper.setStyle('display', 'none');
this.overlay.destroy();
}.bind(this));
}}
@@ -163,6 +164,11 @@ editor.WaitDialog = new Class({
show : function() {
this.open();
},
destroy: function() {
this.parent();
this.overlay.destroy();
}
});
@@ -211,7 +217,6 @@ editor.FatalErrorDialog = new Class({
}).chain(function() {
this.wrapper.setStyle('display', 'none');
this.fireEvent('hide');
this.overlay.destroy();
}.bind(this));
}}
@@ -219,6 +224,11 @@ editor.FatalErrorDialog = new Class({
this.setContent(panel);
},
destroy: function() {
this.parent();
this.overlay.destroy();
},
_buildPanel : function () {
var result = new Element('div');
result.setStyles({