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
41c9ddf3
Commit
41c9ddf3
authored
Jun 11, 2014
by
Ronny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式错误提示
parent
ee997550
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
mindmanager.js
src/protocal/mindmanager.js
+3
-0
xmind.js
src/protocal/xmind.js
+4
-0
No files found.
src/protocal/mindmanager.js
View file @
41c9ddf3
...
...
@@ -94,14 +94,17 @@ KityMinder.registerProtocal( 'mindmanager', function () {
then
:
function
(
local
,
callback
)
{
getEntries
(
local
,
function
(
entries
)
{
var
hasMainDoc
=
false
;
entries
.
forEach
(
function
(
entry
)
{
if
(
entry
.
filename
==
'Document.xml'
)
{
hasMainDoc
=
true
;
entry
.
getData
(
new
zip
.
TextWriter
(),
function
(
text
)
{
var
km
=
xml2km
(
$
.
parseXML
(
text
)
);
callback
&&
callback
(
km
);
}
);
}
}
);
!
hasMainDoc
&&
alert
(
'找不到文件主文档,请检查文件是否是合法mindmanager格式文件'
);
}
);
}
};
...
...
src/protocal/xmind.js
View file @
41c9ddf3
...
...
@@ -100,14 +100,18 @@ KityMinder.registerProtocal( 'xmind', function () {
then
:
function
(
local
,
callback
){
getEntries
(
local
,
function
(
entries
)
{
var
hasMainDoc
=
false
;
entries
.
forEach
(
function
(
entry
)
{
if
(
entry
.
filename
==
'content.xml'
){
hasMainDoc
=
true
;
entry
.
getData
(
new
zip
.
TextWriter
(),
function
(
text
)
{
var
km
=
xml2km
(
$
.
parseXML
(
text
));
callback
&&
callback
(
km
);
});
}
});
!
hasMainDoc
&&
alert
(
'找不到文件主文档,请检查文件是否是合法xmind格式文件'
);
});
}
};
...
...
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