Commit b529bd56 authored by techird's avatar techird

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

parent 7580614b
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
transition: all ease .2s; transition: all ease .2s;
opacity: 0; opacity: 0;
color: white; color: white;
z-index: 101;
transform: translate3d(0, -50px, 0); transform: translate3d(0, -50px, 0);
......
...@@ -13,7 +13,7 @@ KityMinder.registerUI('widget/notice', function (minder) { ...@@ -13,7 +13,7 @@ KityMinder.registerUI('widget/notice', function (minder) {
var $notice = $('<div>') var $notice = $('<div>')
.addClass('notice-widget') .addClass('notice-widget')
.appendTo('#kityminder'); .appendTo('#content-wrapper');
var $mask = $('<div>') var $mask = $('<div>')
.addClass('error-mask'); .addClass('error-mask');
...@@ -119,6 +119,9 @@ KityMinder.registerUI('widget/notice', function (minder) { ...@@ -119,6 +119,9 @@ KityMinder.registerUI('widget/notice', function (minder) {
if (warn) $notice.addClass('warn'); if (warn) $notice.addClass('warn');
else $notice.removeClass('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.append('<p>' + msg + '</p>');
$notice.addClass('show'); $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