Update to motools 1.4.5

Fix Firefox 11 issues.
This commit is contained in:
Paulo Gustavo Veiga
2012-04-01 19:41:19 -03:00
parent a813531731
commit 56d6f125c6
30 changed files with 3031 additions and 2579 deletions

View File

@@ -31,14 +31,17 @@ mindplot.widget.LinkEditor = new Class({
duration: 600,
transition: Fx.Transitions.Bounce.easeOut
});
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
if (this.options.closeOnOverlayClick) this.overlay.addEvent('click', this.close.bind(this));
},
onBeforeOpen: function() {
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
if (this.options.closeOnOverlayClick)
this.overlay.addEvent('click', this.close.bind(this));
this.overlay.open();
this.fx.start({
'margin-top': [-200, -100],
opacity: [0, 1]
@@ -54,7 +57,7 @@ mindplot.widget.LinkEditor = new Class({
}).chain(function() {
this.fireEvent('hide');
}.bind(this));
this.overlay.close();
this.overlay.destroy();
}
});
this.setContent(panel);

View File

@@ -31,14 +31,16 @@ mindplot.widget.NoteEditor = new Class({
duration: 600,
transition: Fx.Transitions.Bounce.easeOut
});
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
if (this.options.closeOnOverlayClick) this.overlay.addEvent('click', this.close.bind(this));
},
onBeforeOpen: function() {
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
if (this.options.closeOnOverlayClick)
this.overlay.addEvent('click', this.close.bind(this));
this.overlay.open();
this.fx.start({
'margin-top': [-200, -100],
opacity: [0, 1]
@@ -54,7 +56,7 @@ mindplot.widget.NoteEditor = new Class({
}).chain(function() {
this.fireEvent('hide');
}.bind(this));
this.overlay.close();
this.overlay.destroy();
}
});
this.setContent(panel);