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
920567ed
Commit
920567ed
authored
Feb 21, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug
parent
f76a3351
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
layout.js
src/adapter/layout.js
+2
-1
saveto.js
src/adapter/saveto.js
+3
-9
No files found.
src/adapter/layout.js
View file @
920567ed
...
@@ -8,7 +8,8 @@ KM.registerToolbarUI( 'layout', function ( name ) {
...
@@ -8,7 +8,8 @@ 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
)
{
...
...
src/adapter/saveto.js
View file @
920567ed
...
@@ -24,6 +24,7 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
...
@@ -24,6 +24,7 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
options
.
autowidthitem
.
push
(
$
.
wordCountAdaptive
(
text
),
true
);
options
.
autowidthitem
.
push
(
$
.
wordCountAdaptive
(
text
),
true
);
}
);
}
);
//实例化
//实例化
$combox
=
$
.
kmuibuttoncombobox
(
options
).
css
(
'zIndex'
,
me
.
getOptions
(
'zIndex'
)
+
1
);
$combox
=
$
.
kmuibuttoncombobox
(
options
).
css
(
'zIndex'
,
me
.
getOptions
(
'zIndex'
)
+
1
);
comboboxWidget
=
$combox
.
kmui
();
comboboxWidget
=
$combox
.
kmui
();
...
@@ -39,15 +40,8 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
...
@@ -39,15 +40,8 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
if
(
$combox
.
parent
().
length
===
0
)
{
if
(
$combox
.
parent
().
length
===
0
)
{
$combox
.
appendTo
(
me
.
$container
.
find
(
'.kmui-dialog-container'
)
);
$combox
.
appendTo
(
me
.
$container
.
find
(
'.kmui-dialog-container'
)
);
}
}
var
combox
=
$combox
.
kmui
();
}
).
on
(
'aftercomboboxselect'
,
function
()
{
this
.
setLabelWithDefaultValue
();
combox
.
traverseItems
(
function
(
label
,
value
)
{
if
(
me
.
queryCommandState
(
value
)
==
-
1
)
{
combox
.
disableItemByLabel
(
label
)
}
else
{
combox
.
enableItemByLabel
(
label
)
}
}
)
}
);
}
);
...
...
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