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
e21f8788
Commit
e21f8788
authored
Feb 26, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dist
parent
192605c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
dev.js
dist/dev.js
+22
-17
No files found.
dist/dev.js
View file @
e21f8788
...
...
@@ -5093,7 +5093,8 @@ KityMinder.registerModule( 'Zoom', function () {
'ready'
:
function
()
{
this
.
_zoomValue
=
1
;
},
'mousewheel'
:
function
(
e
)
{
// disable mouse wheel
'mousewheel_'
:
function
(
e
)
{
var
delta
=
e
.
originEvent
.
wheelDelta
;
var
me
=
this
;
...
...
@@ -5408,11 +5409,11 @@ KM.ui.define('button', {
//menu 类
KM
.
ui
.
define
(
'menu'
,{
show
:
function
(
$obj
,
dir
,
fnname
,
topOffset
,
leftOffset
){
fnname
=
fnname
||
'position'
;
if
(
this
.
trigger
(
'beforeshow'
)
===
false
){
return
;
}
else
{
this
.
root
().
css
(
$
.
extend
({
display
:
'block'
},
$obj
?
{
top
:
$obj
[
fnname
]().
top
+
(
dir
==
'right'
?
0
:
$obj
.
outerHeight
())
-
(
topOffset
||
0
),
left
:
$obj
[
fnname
]().
left
+
(
dir
==
'right'
?
$obj
.
outerWidth
()
:
0
)
-
(
leftOffset
||
0
)
...
...
@@ -5439,7 +5440,7 @@ KM.ui.define('menu',{
if
(
!
$obj
.
data
(
'$mergeObj'
)){
$obj
.
data
(
'$mergeObj'
,
me
.
root
());
$obj
.
on
(
'wrapclick'
,
function
(
evt
){
me
.
s
how
(
)
me
.
s
upper
.
show
.
call
(
me
,
$obj
,
''
,
'offset'
)
});
me
.
register
(
'click'
,
$obj
,
function
(
evt
){
me
.
hide
()
...
...
@@ -5452,9 +5453,14 @@ KM.ui.define('menu',{
//dropmenu 类
KM
.
ui
.
define
(
'dropmenu'
,
{
tmpl
:
'<ul class="kmui-dropdown-menu" aria-labelledby="dropdownMenu" >'
+
this
.
subTmpl
+
'<%if(data && data.length){for(var i=0,ci;ci=data[i++];){%>'
+
'<%if(ci.divider){%><li class="kmui-divider"></li><%}else{%>'
+
'<li <%if(ci.active||ci.disabled){%>class="<%= ci.active||
\'\'
%> <%=ci.disabled||
\'\'
%>" <%}%> data-value="<%= ci.value%>" data-label="<%= ci.label%>">'
+
'<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= ci.label%></a>'
+
'</li><%}}%>'
+
'<%}%>'
+
'</ul>'
,
subTmpl
:
'<%if(data && data.length){for(var i=0,ci;ci=data[i++];){%>'
+
subTmpl
:
'<%if(data && data.length){for(var i=0,ci;ci=data[i++];){%>'
+
'<%if(ci.divider){%><li class="kmui-divider"></li><%}else{%>'
+
'<li <%if(ci.active||ci.disabled){%>class="<%= ci.active||
\'\'
%> <%=ci.disabled||
\'\'
%>" <%}%> data-value="<%= ci.value%>" data-label="<%= ci.label%>">'
+
'<a href="#" tabindex="-1"><em class="kmui-dropmenu-checkbox"><i class="kmui-icon-ok"></i></em><%= ci.label%></a>'
+
...
...
@@ -5467,7 +5473,7 @@ KM.ui.define('dropmenu', {
},
setData
:
function
(
items
){
this
.
root
().
html
(
$
.
parseTmpl
(
this
.
subTmpl
,
items
))
this
.
root
().
html
(
$
.
parseTmpl
(
this
.
subTmpl
,
items
))
;
return
this
;
},
...
...
@@ -5478,15 +5484,15 @@ KM.ui.define('dropmenu', {
});
return
this
;
},
//
show:function(){
//
if(this.trigger('beforeshow') === false){
//
return;
//
}else{
//
this.root().css({display:'block'});
//
this.trigger('aftershow');
//
}
//
return this;
//
},
show
:
function
(){
if
(
this
.
trigger
(
'beforeshow'
)
===
false
){
return
;
}
else
{
this
.
root
().
css
({
display
:
'block'
});
this
.
trigger
(
'aftershow'
);
}
return
this
;
},
init
:
function
(
options
)
{
var
me
=
this
;
var
eventName
=
{
...
...
@@ -7128,8 +7134,7 @@ KM.registerToolbarUI( 'fontfamily fontsize', function ( name ) {
temp
=
options
.
items
[
i
];
tempItems
.
push
(
temp
);
options
.
itemStyles
.
push
(
'font-size: '
+
temp
+
'px'
);
options
.
itemStyles
.
push
(
'font-size: '
+
temp
+
'px; height:'
+
(
temp
+
2
)
+
'px; line-height: '
+
(
temp
+
2
)
+
'px'
);
}
options
.
value
=
options
.
items
;
...
...
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