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
c081cbda
Commit
c081cbda
authored
Feb 21, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug
parent
f050e1e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
layout.js
src/adapter/layout.js
+9
-2
layout.js
src/module/layout.js
+4
-1
No files found.
src/adapter/layout.js
View file @
c081cbda
...
@@ -8,8 +8,7 @@ KM.registerToolbarUI( 'layout', function ( name ) {
...
@@ -8,8 +8,7 @@ KM.registerToolbarUI( 'layout', function ( name ) {
items
:
me
.
getLayoutStyleItems
()
||
[],
items
:
me
.
getLayoutStyleItems
()
||
[],
itemStyles
:
[],
itemStyles
:
[],
value
:
me
.
getLayoutStyleItems
(),
value
:
me
.
getLayoutStyleItems
(),
autowidthitem
:
[],
autowidthitem
:
[]
enabledRecord
:
false
},
},
$combox
=
null
;
$combox
=
null
;
if
(
options
.
items
.
length
==
0
)
{
if
(
options
.
items
.
length
==
0
)
{
...
@@ -27,6 +26,14 @@ KM.registerToolbarUI( 'layout', function ( name ) {
...
@@ -27,6 +26,14 @@ KM.registerToolbarUI( 'layout', function ( name ) {
$combox
.
appendTo
(
me
.
$container
.
find
(
'.kmui-dialog-container'
)
);
$combox
.
appendTo
(
me
.
$container
.
find
(
'.kmui-dialog-container'
)
);
}
}
}
);
}
);
me
.
on
(
'interactchange'
,
function
()
{
var
value
=
this
.
queryCommandValue
(
"switchlayout"
);
if
(
value
)
{
//设置label
comboboxWidget
.
selectItemByLabel
(
value
);
}
}
);
return
comboboxWidget
.
button
().
addClass
(
'kmui-combobox'
);
return
comboboxWidget
.
button
().
addClass
(
'kmui-combobox'
);
}
);
}
);
\ No newline at end of file
src/module/layout.js
View file @
c081cbda
...
@@ -94,7 +94,10 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -94,7 +94,10 @@ KityMinder.registerModule( "LayoutModule", function () {
var
SwitchLayoutCommand
=
kity
.
createClass
(
"SwitchLayoutCommand"
,
(
function
()
{
var
SwitchLayoutCommand
=
kity
.
createClass
(
"SwitchLayoutCommand"
,
(
function
()
{
return
{
return
{
base
:
Command
,
base
:
Command
,
execute
:
switchLayout
execute
:
switchLayout
,
queryValue
:
function
(
km
)
{
return
km
.
getCurrentStyle
();
}
};
};
}
)()
);
}
)()
);
var
AppendChildNodeCommand
=
kity
.
createClass
(
"AppendChildNodeCommand"
,
(
function
()
{
var
AppendChildNodeCommand
=
kity
.
createClass
(
"AppendChildNodeCommand"
,
(
function
()
{
...
...
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