Commit b529bd56 authored by techird's avatar techird

修改通知组件位置,在主菜单也允许通知

parent 7580614b
......@@ -8,6 +8,7 @@
transition: all ease .2s;
opacity: 0;
color: white;
z-index: 101;
transform: translate3d(0, -50px, 0);
......
......@@ -13,7 +13,7 @@ KityMinder.registerUI('widget/notice', function (minder) {
var $notice = $('<div>')
.addClass('notice-widget')
.appendTo('#kityminder');
.appendTo('#content-wrapper');
var $mask = $('<div>')
.addClass('error-mask');
......@@ -119,6 +119,9 @@ KityMinder.registerUI('widget/notice', function (minder) {
if (warn) $notice.addClass('warn');
else $notice.removeClass('warn');
$notice.css({
top: minder.getUI('menu/menu').isVisible() ? $('#main-menu .main-menu-level1').offset().top : $('#kityminder').offset().top + 20
});
$notice.append('<p>' + msg + '</p>');
$notice.addClass('show');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment