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
d03f87ef
Commit
d03f87ef
authored
Feb 24, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by zhanyi
parent
82edd911
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
contextmenu.js
src/adapter/contextmenu.js
+8
-1
layout.js
src/adapter/layout.js
+3
-1
layout.js
src/module/layout.js
+2
-0
dropmenu.css
themes/default/_css/dropmenu.css
+2
-2
No files found.
src/adapter/contextmenu.js
View file @
d03f87ef
...
...
@@ -32,6 +32,10 @@ KM.registerUI( 'contextmenu', function () {
var
data
=
[];
utils
.
each
(
items
,
function
(
i
,
item
){
if
(
item
.
divider
){
data
.
push
(
item
)
return
;
}
if
(
me
.
queryCommandState
(
item
.
cmdName
)
!=-
1
){
data
.
push
({
label
:
item
.
label
,
...
...
@@ -41,7 +45,10 @@ KM.registerUI( 'contextmenu', function () {
}
});
if
(
data
.
length
){
var
item
=
data
[
data
.
length
-
1
];
if
(
item
.
divider
){
data
.
pop
();
}
$menu
.
kmui
().
setData
({
data
:
data
}).
position
(
e
.
getPosition
()).
show
();
...
...
src/adapter/layout.js
View file @
d03f87ef
...
...
@@ -53,7 +53,9 @@ KM.registerToolbarUI( 'switchlayout', function ( name ) {
}
})
});
data
.
push
({
divider
:
1
});
me
.
addContextmenu
(
data
);
return
comboboxWidget
.
button
().
addClass
(
'kmui-combobox'
);
}
);
\ No newline at end of file
src/module/layout.js
View file @
d03f87ef
...
...
@@ -221,6 +221,8 @@ KityMinder.registerModule( "LayoutModule", function () {
{
label
:
this
.
getLang
(
'node.removenode'
),
cmdName
:
'removenode'
},{
divider
:
1
}
],
...
...
themes/default/_css/dropmenu.css
View file @
d03f87ef
...
...
@@ -25,7 +25,7 @@
left
:
auto
;
}
.kmui-dropdown-menu
.divider
{
.kmui-dropdown-menu
.
kmui-
divider
{
height
:
1px
;
margin
:
9px
0
;
overflow
:
hidden
;
...
...
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