Fix destroying dialogs on load ...
parent
56d6f125c6
commit
9681b9016d
|
@ -112,6 +112,7 @@ editor.WaitDialog = new Class({
|
||||||
title:'Loading ...',
|
title:'Loading ...',
|
||||||
onInitialize: function(wrapper) {
|
onInitialize: function(wrapper) {
|
||||||
wrapper.setStyle('opacity', 0);
|
wrapper.setStyle('opacity', 0);
|
||||||
|
this.wrapper.setStyle('display', 'none');
|
||||||
this.fx = new Fx.Morph(wrapper, {
|
this.fx = new Fx.Morph(wrapper, {
|
||||||
duration: 100,
|
duration: 100,
|
||||||
transition: Fx.Transitions.Bounce.easeOut
|
transition: Fx.Transitions.Bounce.easeOut
|
||||||
|
@ -179,6 +180,7 @@ editor.FatalErrorDialog = new Class({
|
||||||
title:'Outch!!. An unexpected error has occurred',
|
title:'Outch!!. An unexpected error has occurred',
|
||||||
onInitialize: function(wrapper) {
|
onInitialize: function(wrapper) {
|
||||||
wrapper.setStyle('opacity', 0);
|
wrapper.setStyle('opacity', 0);
|
||||||
|
this.wrapper.setStyle('display', 'none');
|
||||||
this.fx = new Fx.Morph(wrapper, {
|
this.fx = new Fx.Morph(wrapper, {
|
||||||
duration: 100,
|
duration: 100,
|
||||||
transition: Fx.Transitions.Bounce.easeOut
|
transition: Fx.Transitions.Bounce.easeOut
|
||||||
|
@ -197,9 +199,9 @@ editor.FatalErrorDialog = new Class({
|
||||||
opacity: [0, 1]
|
opacity: [0, 1]
|
||||||
}).chain(function() {
|
}).chain(function() {
|
||||||
this.fireEvent('show');
|
this.fireEvent('show');
|
||||||
|
this.wrapper.setStyle('display', 'block');
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
onBeforeClose: function() {
|
onBeforeClose: function() {
|
||||||
this.fx.start({
|
this.fx.start({
|
||||||
|
@ -207,9 +209,11 @@ editor.FatalErrorDialog = new Class({
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
duration: 200
|
duration: 200
|
||||||
}).chain(function() {
|
}).chain(function() {
|
||||||
|
this.wrapper.setStyle('display', 'none');
|
||||||
this.fireEvent('hide');
|
this.fireEvent('hide');
|
||||||
|
this.overlay.destroy();
|
||||||
|
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
this.overlay.destroy();
|
|
||||||
}}
|
}}
|
||||||
);
|
);
|
||||||
this.setContent(panel);
|
this.setContent(panel);
|
||||||
|
|
Loading…
Reference in New Issue