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
92fd1f64
Commit
92fd1f64
authored
Oct 12, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本兼容
parent
10751361
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
compatibility.js
src/core/compatibility.js
+8
-1
clipboard.js
src/module/clipboard.js
+2
-0
No files found.
src/core/compatibility.js
View file @
92fd1f64
...
@@ -13,7 +13,12 @@ Utils.extend(KityMinder, {
...
@@ -13,7 +13,12 @@ Utils.extend(KityMinder, {
/* 脑图数据升级 */
/* 脑图数据升级 */
function
c_120_130
(
json
)
{
function
c_120_130
(
json
)
{
traverse
(
json
,
function
(
node
)
{
var
data
=
node
.
data
;
delete
data
.
layout_bottom_offset
;
delete
data
.
layout_default_offset
;
delete
data
.
layout_filetree_offset
;
});
}
}
/**
/**
...
@@ -57,6 +62,8 @@ Utils.extend(KityMinder, {
...
@@ -57,6 +62,8 @@ Utils.extend(KityMinder, {
case
'1.1.3'
:
case
'1.1.3'
:
c_113_120
(
json
);
c_113_120
(
json
);
case
'1.2.0'
:
case
'1.2.0'
:
case
'1.2.1'
:
c_120_130
(
json
);
}
}
return
json
;
return
json
;
...
...
src/module/clipboard.js
View file @
92fd1f64
...
@@ -38,6 +38,8 @@ KityMinder.registerModule( "ClipboardModule", function () {
...
@@ -38,6 +38,8 @@ KityMinder.registerModule( "ClipboardModule", function () {
execute
:
function
(
km
)
{
execute
:
function
(
km
)
{
var
ancestors
=
km
.
getSelectedAncestors
();
var
ancestors
=
km
.
getSelectedAncestors
();
if
(
ancestors
.
length
===
0
)
return
;
sendToClipboard
(
ancestors
);
sendToClipboard
(
ancestors
);
km
.
select
(
MinderNode
.
getCommonAncestor
(
ancestors
),
true
);
km
.
select
(
MinderNode
.
getCommonAncestor
(
ancestors
),
true
);
...
...
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