Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
b529bd56
Commit
b529bd56
authored
Oct 24, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知组件位置,在主菜单也允许通知
parent
7580614b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
_notice.less
ui/theme/default/css/_notice.less
+1
-0
notice.js
ui/widget/notice.js
+4
-1
No files found.
ui/theme/default/css/_notice.less
View file @
b529bd56
...
...
@@ -8,6 +8,7 @@
transition: all ease .2s;
opacity: 0;
color: white;
z-index: 101;
transform: translate3d(0, -50px, 0);
...
...
ui/widget/notice.js
View file @
b529bd56
...
...
@@ -13,7 +13,7 @@ KityMinder.registerUI('widget/notice', function (minder) {
var
$notice
=
$
(
'<div>'
)
.
addClass
(
'notice-widget'
)
.
appendTo
(
'#
kitymind
er'
);
.
appendTo
(
'#
content-wrapp
er'
);
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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment