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
4938d0a9
Commit
4938d0a9
authored
Feb 27, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by zhanyi01
parent
c7471140
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
dropmenu.js
src/ui/dropmenu.js
+8
-2
No files found.
src/ui/dropmenu.js
View file @
4938d0a9
...
@@ -61,9 +61,15 @@ KM.ui.define('dropmenu', {
...
@@ -61,9 +61,15 @@ KM.ui.define('dropmenu', {
})
})
})
})
}
}
})
})
;
},
},
_initEvent
:
function
(){
this
.
root
().
on
(
'mouseover'
,
'li[class="kmui-dropdown-submenu'
,
function
(
e
){
var
$submenu
=
$
(
this
).
data
(
'widget'
);
$submenu
.
kmui
().
show
(
$
(
this
),
'right'
,
'position'
,
5
,
2
)
});
},
disabled
:
function
(
cb
)
{
disabled
:
function
(
cb
)
{
$
(
'li[class!=kmui-divider]'
,
this
.
root
()).
each
(
function
()
{
$
(
'li[class!=kmui-divider]'
,
this
.
root
()).
each
(
function
()
{
var
$el
=
$
(
this
);
var
$el
=
$
(
this
);
...
@@ -99,7 +105,7 @@ KM.ui.define('dropmenu', {
...
@@ -99,7 +105,7 @@ KM.ui.define('dropmenu', {
var
$list
=
$
(
'li[class!=kmui-divider]'
,
this
.
root
());
var
$list
=
$
(
'li[class!=kmui-divider]'
,
this
.
root
());
var
$node
=
$
(
'<li class="kmui-dropdown-submenu"><a tabindex="-1" href="#">'
+
label
+
'</a></li>'
).
append
(
menu
);
var
$node
=
$
(
'<li class="kmui-dropdown-submenu"><a tabindex="-1" href="#">'
+
label
+
'</a></li>'
).
append
(
menu
);
$node
.
data
(
'widget'
,
menu
);
if
(
index
>=
0
&&
index
<
$list
.
length
)
{
if
(
index
>=
0
&&
index
<
$list
.
length
)
{
$node
.
insertBefore
(
$list
[
index
]);
$node
.
insertBefore
(
$list
[
index
]);
}
else
if
(
index
<
0
)
{
}
else
if
(
index
<
0
)
{
...
...
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