this._overlay = $('#systemNotification');
if (!this._overlay.length) {
- this._overlay = $('<div id="systemNotification"><p></p></div>').appendTo(document.body);
+ this._overlay = $('<div id="systemNotification"><p></p></div>').hide().appendTo(document.body);
}
},
// hide overlay after specified duration
new WCF.PeriodicalExecuter($.proxy(this._hide, this), duration);
- this._overlay.addClass('open');
+ this._overlay.wcfFadeIn(undefined, 300);
},
/**
this._callback();
}
- this._overlay.removeClass('open');
+ this._overlay.wcfFadeOut(undefined, 300);
pe.stop();
}
/* notification overlay */
#systemNotification {
left: 0;
- opacity: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 460;
- .transition(opacity, .3s);
-
- &.open {
- opacity: 1;
- }
-
> p {
border-top-left-radius: 0;
border-top-right-radius: 0;