mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
Bug message: this._container is null, line:4594, :http://app.wisemapping.com/js/mindplot-min2.js
This commit is contained in:
parent
7e8745f875
commit
d54a689ace
@ -18,45 +18,47 @@
|
|||||||
|
|
||||||
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,
|
||||||
transition: Fx.Transitions.Expo.easeInOut
|
transition:Fx.Transitions.Expo.easeInOut
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
logError : function(userMsg) {
|
logError:function (userMsg) {
|
||||||
this.logMessage(userMsg, mindplot.widget.ToolbarNotifier.MsgKind.ERROR);
|
this.logMessage(userMsg, mindplot.widget.ToolbarNotifier.MsgKind.ERROR);
|
||||||
},
|
},
|
||||||
|
|
||||||
hide:function() {
|
hide:function () {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
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);
|
||||||
relativeTo: $('header'),
|
container.setStyle('display', 'block');
|
||||||
position: 'upperCenter',
|
container.position({
|
||||||
edge: 'centerTop'
|
relativeTo:$('header'),
|
||||||
|
position:'upperCenter',
|
||||||
|
edge:'centerTop'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!$defined(fade) || fade) {
|
if (!$defined(fade) || fade) {
|
||||||
this._effect.start({
|
this._effect.start({
|
||||||
0: {
|
0:{
|
||||||
opacity: [1,0]
|
opacity:[1, 0]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this._container.setStyle('opacity', '1');
|
container.setStyle('opacity', '1');
|
||||||
this._effect.pause();
|
this._effect.pause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
0
wise-editor/src/main/webapp/samples/issue.xml
Normal file
0
wise-editor/src/main/webapp/samples/issue.xml
Normal file
0
wise-editor/src/main/webapp/samples/sample4.xml
Normal file
0
wise-editor/src/main/webapp/samples/sample4.xml
Normal file
Loading…
Reference in New Issue
Block a user