Bug message: this._container is null, line:4594, :http://app.wisemapping.com/js/mindplot-min2.js
parent
7e8745f875
commit
d54a689ace
|
@ -19,10 +19,10 @@
|
||||||
mindplot.widget.ToolbarNotifier = new Class({
|
mindplot.widget.ToolbarNotifier = new Class({
|
||||||
|
|
||||||
initialize:function () {
|
initialize:function () {
|
||||||
this._container = $('headerNotifier');
|
var container = $('headerNotifier');
|
||||||
this._effect = new Fx.Elements(this._container, {
|
this._effect = new Fx.Elements(container, {
|
||||||
onComplete:function () {
|
onComplete:function () {
|
||||||
this._container.setStyle('display', 'none');
|
container.setStyle('display', 'none');
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
link:'cancel',
|
link:'cancel',
|
||||||
duration:8000,
|
duration:8000,
|
||||||
|
@ -40,9 +40,11 @@ mindplot.widget.ToolbarNotifier = new Class({
|
||||||
|
|
||||||
logMessage:function (msg, fade) {
|
logMessage:function (msg, fade) {
|
||||||
$assert(msg, 'msg can not be null');
|
$assert(msg, 'msg can not be null');
|
||||||
this._container.set('text', msg);
|
|
||||||
this._container.setStyle('display', 'block');
|
var container = $('headerNotifier');
|
||||||
this._container.position({
|
container.set('text', msg);
|
||||||
|
container.setStyle('display', 'block');
|
||||||
|
container.position({
|
||||||
relativeTo:$('header'),
|
relativeTo:$('header'),
|
||||||
position:'upperCenter',
|
position:'upperCenter',
|
||||||
edge:'centerTop'
|
edge:'centerTop'
|
||||||
|
@ -56,7 +58,7 @@ mindplot.widget.ToolbarNotifier = new Class({
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this._container.setStyle('opacity', '1');
|
container.setStyle('opacity', '1');
|
||||||
this._effect.pause();
|
this._effect.pause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue